Package org.apache.solr.handler
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 Summary
Constructors Constructor Description RequestHandlerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addExperimentalFormatWarning(SolrQueryResponse rsp)
A common way to mark the response format as experimentalstatic boolean
handleCommit(SolrQueryRequest req, UpdateRequestProcessor processor, org.apache.solr.common.params.SolrParams params, boolean force)
Check the request parameters and decide if it should commit or optimize.static boolean
handleRollback(SolrQueryRequest req, UpdateRequestProcessor processor, org.apache.solr.common.params.SolrParams params, boolean force)
static void
setWt(SolrQueryRequest req, String wt)
static void
updateCommit(CommitUpdateCommand cmd, org.apache.solr.common.params.SolrParams params)
Modify UpdateCommand based on request parametersstatic void
validateCommitParams(org.apache.solr.common.params.SolrParams params)
-
-
-
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
-
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
-
-