Class RequestHandlerUtils


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

      • RequestHandlerUtils

        public RequestHandlerUtils()
    • Method Detail

      • 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