Package org.apache.solr.update.processor
Class IgnoreCommitOptimizeUpdateProcessorFactory
java.lang.Object
org.apache.solr.update.processor.UpdateRequestProcessorFactory
org.apache.solr.update.processor.IgnoreCommitOptimizeUpdateProcessorFactory
- All Implemented Interfaces:
NamedListInitializedPlugin
Gives system administrators a way to ignore explicit commit or optimize requests from clients.
The factory can be configured to return a specific HTTP response code, default is 403, and
optional response message, such as to warn the client application that its request was ignored.
- Since:
- 5.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
UpdateRequestProcessorFactory.RunAlways -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.solr.common.SolrException.ErrorCodeprotected booleanprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next) voidinit(org.apache.solr.common.util.NamedList<?> args) initwill be called just once, immediately after creation.
-
Field Details
-
errorCode
protected org.apache.solr.common.SolrException.ErrorCode errorCode -
responseMsg
-
ignoreOptimizeOnly
protected boolean ignoreOptimizeOnly
-
-
Constructor Details
-
IgnoreCommitOptimizeUpdateProcessorFactory
public IgnoreCommitOptimizeUpdateProcessorFactory()
-
-
Method Details
-
init
public void init(org.apache.solr.common.util.NamedList<?> args) Description copied from interface:NamedListInitializedPlugininitwill be called just once, immediately after creation.Source of the initialization arguments will typically be solrconfig.xml, but will ultimately depends on the plugin itself
- Parameters:
args- non-null list of initialization parameters (may be empty)
-
getInstance
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next) - Specified by:
getInstancein classUpdateRequestProcessorFactory
-