Package org.apache.solr.update.processor
Class AtomicUpdateProcessorFactory
java.lang.Object
org.apache.solr.update.processor.UpdateRequestProcessorFactory
org.apache.solr.update.processor.AtomicUpdateProcessorFactory
- All Implemented Interfaces:
NamedListInitializedPlugin,SolrCoreAware
public class AtomicUpdateProcessorFactory
extends UpdateRequestProcessorFactory
implements SolrCoreAware
An update processor that will convert conventional field-value document to atomic update document
sample request: curl -X POST -H Content-Type: application/json http://localhost:8983/solr/test/update/json/docs?processor=atomic;ampersand;atomic.my_newfield=add;ampersand;atomic.subject=set;ampersand;atomic.count_i=inc;ampersand;commit=true --data-binary {"id": 1,"title": "titleA"} currently supports all types of atomic updates
- Since:
- 6.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.update.processor.UpdateRequestProcessorFactory
UpdateRequestProcessorFactory.RunAlways -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
Field Details
-
NAME
- See Also:
-
ATOMIC_FIELD_PREFIX
- See Also:
-
-
Constructor Details
-
AtomicUpdateProcessorFactory
public AtomicUpdateProcessorFactory()
-
-
Method Details
-
inform
- Specified by:
informin interfaceSolrCoreAware
-
getInstance
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next) - Specified by:
getInstancein classUpdateRequestProcessorFactory
-