Apache Lucene open-source search software
SOLR-9530: documentation added
Noble Paulce5b184b17fb
diff --git a/solr/solr-ref-guide/src/update-request-processors.adoc b/solr/solr-ref-guide/src/update-request-processors.adocindex eb69d3b1040..a4f3e0c0b90 100644--- a/solr/solr-ref-guide/src/update-request-processors.adoc+++ b/solr/solr-ref-guide/src/update-request-processors.adoc@@ -379,13 +379,14 @@ These are listed for completeness, but are part of the Solr infrastructure, part[[UpdateRequestProcessors-UpdateProcessorsThatCanBeUsedatRuntime]]=== Update Processors That Can Be Used at Runtime+These Update processors do not need any configuration is your `solrconfig.xml` . They are automatically initialized when their name is added to the `processor` parameter. Multiple processors can be used by appending multiple processor names (comma separated)[[UpdateRequestProcessors-TemplateUpdateProcessorFactory]]==== TemplateUpdateProcessorFactoryThe `TemplateUpdateProcessorFactory` can be used to add new fields to documents based on a template pattern.-This can be used directly in a request without any configuration. To enable this processor, use the parameter `processor=Template`. The template parameter `Template.field` (multivalued) define the field to add and the pattern. Templates may contain placeholders which refer to other fields in the document. You can have multiple `Template.field` parameters in a single request.+Use the parameter `processor=Template` to use it. The template parameter `Template.field` (multivalued) define the field to add and the pattern. Templates may contain placeholders which refer to other fields in the document. You can have multiple `Template.field` parameters in a single request.For example:@@ -395,3 +396,22 @@ processor=Template&Template.field=fullName:Mr. ${firstName} ${lastName}----The above example would add a new field to the document called `fullName`. The fields `firstName and` `lastName` are supplied from the document fields. If either of them is missing, that part is replaced with an empty string. If those fields are multi-valued, only the first value is used.++==== AtomicUpdateProcessorFactory+++Use it to convert your normal `update` operations to atomic update operations. This is particularly useful when you use endpoints such as `/update/csv` or `/update/json/docs` which does not support syntax for atomic operations.++example:++[source,bash]+----+processor=Atomic&Atomic.field1=add&Atomic.field2=set&Atomic.field3=inc&Atomic.field4=remove&Atomic.field4=remove+----++The above parameters convert a normal `update` operation on++* `field1` to an atomic `add` operation+* `field2` to an atomic `set` operation+* `field3` to an atomic `inc` operation+* `field4` to an atomic `remove` operation\ No newline at end of file