public class IgnoreCommitOptimizeUpdateProcessorFactory extends UpdateRequestProcessorFactory
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.
UpdateRequestProcessorFactory.RunAlways| Modifier and Type | Field and Description |
|---|---|
protected SolrException.ErrorCode |
errorCode |
protected boolean |
ignoreOptimizeOnly |
protected String |
responseMsg |
| Constructor and Description |
|---|
IgnoreCommitOptimizeUpdateProcessorFactory() |
| Modifier and Type | Method and Description |
|---|---|
UpdateRequestProcessor |
getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
void |
init(NamedList args) |
protected SolrException.ErrorCode errorCode
protected String responseMsg
protected boolean ignoreOptimizeOnly
public IgnoreCommitOptimizeUpdateProcessorFactory()
public void init(NamedList args)
init in interface NamedListInitializedPlugininit in class UpdateRequestProcessorFactorypublic UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance in class UpdateRequestProcessorFactoryCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.