diff --git a/solr/core/src/java/org/apache/solr/update/processor/UpdateRequestProcessorChain.java b/solr/core/src/java/org/apache/solr/update/processor/UpdateRequestProcessorChain.java index 282549bdb3a..8bd75e6e340 100644 --- a/solr/core/src/java/org/apache/solr/update/processor/UpdateRequestProcessorChain.java +++ b/solr/core/src/java/org/apache/solr/update/processor/UpdateRequestProcessorChain.java @@ -34,23 +34,48 @@ import java.util.ArrayList; /** * Manages a chain of UpdateRequestProcessorFactories. *

- * Chain can be configured via solrconfig.xml: + * Chains can be configured via solrconfig.xml using the following syntax... *

*
- * <updateRequestProcessors name="key" default="true">
- *   <processor class="PathToClass1" />
- *   <processor class="PathToClass2" />
+ * <updateRequestProcessorChain name="key" default="true">
+ *   <processor class="package.Class1" />
+ *   <processor class="package.Class2" >
+ *     <str name="someInitParam1">value</str>
+ *     <int name="someInitParam2">42</int>
+ *   </processor>
  *   <processor class="solr.LogUpdateProcessorFactory" >
  *     <int name="maxNumToLog">100</int>
  *   </processor>
  *   <processor class="solr.RunUpdateProcessorFactory" />
- * </updateRequestProcessors>
+ * </updateRequestProcessorChain>
  * 
*

+ * Multiple Chains can be defined, each with a distinct name. The name of + * a chain used to handle an update request may be specified using the request + * param update.chain. If no chain is explicitly selected + * by name, then Solr will attempt to determine a default chain: + *

+ * + * + *

* Allmost all processor chains should end with an instance of - * {@link RunUpdateProcessorFactory} unless the user is explicitly + * RunUpdateProcessorFactory unless the user is explicitly * executing the update commands in an alternative custom - * UpdateRequestProcessorFactory. + * UpdateRequestProcessorFactory. If a chain includes + * RunUpdateProcessorFactory but does not include a + * DistributingUpdateProcessorFactory, it will be added + * automaticly by {@link #init init()}. *

* * @see UpdateRequestProcessorFactory