public class AtomicUpdateProcessorFactory extends UpdateRequestProcessorFactory implements SolrCoreAware
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 updatesUpdateRequestProcessorFactory.RunAlways
Modifier and Type | Field and Description |
---|---|
static String |
ATOMIC_FIELD_PREFIX |
static String |
NAME |
Constructor and Description |
---|
AtomicUpdateProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
UpdateRequestProcessor |
getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
void |
inform(SolrCore core) |
void |
init(NamedList args) |
public static final String NAME
public static final String ATOMIC_FIELD_PREFIX
public void init(NamedList args)
init
in interface NamedListInitializedPlugin
init
in class UpdateRequestProcessorFactory
public void inform(SolrCore core)
inform
in interface SolrCoreAware
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance
in class UpdateRequestProcessorFactory
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.