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 SummaryConstructors Constructor Description RequestHandlerUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddExperimentalFormatWarning(SolrQueryResponse rsp)A common way to mark the response format as experimentalstatic booleanhandleCommit(SolrQueryRequest req, UpdateRequestProcessor processor, SolrParams params, boolean force)Check the request parameters and decide if it should commit or optimize.static booleanhandleRollback(SolrQueryRequest req, UpdateRequestProcessor processor, SolrParams params, boolean force)static voidsetWt(SolrQueryRequest req, String wt)static voidupdateCommit(CommitUpdateCommand cmd, SolrParams params)Modify UpdateCommand based on request parametersstatic voidvalidateCommitParams(SolrParams params)
 
- 
- 
- 
Method Detail- 
addExperimentalFormatWarningpublic static void addExperimentalFormatWarning(SolrQueryResponse rsp) A common way to mark the response format as experimental
 - 
handleCommitpublic static boolean handleCommit(SolrQueryRequest req, UpdateRequestProcessor processor, 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
 
 - 
validateCommitParamspublic static void validateCommitParams(SolrParams params) 
 - 
updateCommitpublic static void updateCommit(CommitUpdateCommand cmd, SolrParams params) Modify UpdateCommand based on request parameters
 - 
handleRollbackpublic static boolean handleRollback(SolrQueryRequest req, UpdateRequestProcessor processor, SolrParams params, boolean force) throws IOException - Throws:
- IOException
- Since:
- Solr 1.4
 
 - 
setWtpublic static void setWt(SolrQueryRequest req, String wt) - Since:
- 6.7
 
 
- 
 
-