Class RequestHandlerUtils

java.lang.Object
org.apache.solr.handler.RequestHandlerUtils

public class RequestHandlerUtils extends Object
Common helper functions for RequestHandlers
Since:
solr 1.2
  • Constructor Details

    • RequestHandlerUtils

      public RequestHandlerUtils()
  • Method Details

    • addExperimentalFormatWarning

      public static void addExperimentalFormatWarning(SolrQueryResponse rsp)
      A common way to mark the response format as experimental
    • handleCommit

      public static boolean handleCommit(SolrQueryRequest req, UpdateRequestProcessor processor, org.apache.solr.common.params.SolrParams params, boolean force) throws IOException
      Check the request parameters and decide if it should commit or optimize. If it does, it will check other related parameters such as "waitFlush" and "waitSearcher"
      Throws:
      IOException
    • validateCommitParams

      public static void validateCommitParams(org.apache.solr.common.params.SolrParams params)
    • updateCommit

      public static void updateCommit(CommitUpdateCommand cmd, org.apache.solr.common.params.SolrParams params)
      Modify UpdateCommand based on request parameters
    • handleRollback

      public static boolean handleRollback(SolrQueryRequest req, UpdateRequestProcessor processor, org.apache.solr.common.params.SolrParams params, boolean force) throws IOException
      Throws:
      IOException
      Since:
      Solr 1.4
    • setWt

      public static void setWt(SolrQueryRequest req, String wt)
      Since:
      6.7