From d342f49051530a967c46165ded3e5a6e2b3b6074 Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Fri, 7 Jun 2013 18:56:46 +0000 Subject: [PATCH] SOLR-4906: fix UpdateRequestProcessorChain class javadocs git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1490782 13f79535-47bb-0310-9956-ffa450edef68 --- .../UpdateRequestProcessorChain.java | 39 +++++++++++++++---- 1 file changed, 32 insertions(+), 7 deletions(-) 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