You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2015/05/27 08:55:13 UTC
[Solr Wiki] Update of "UpdateRequestProcessor" by ShawnHeisey
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "UpdateRequestProcessor" page has been changed by ShawnHeisey:
https://wiki.apache.org/solr/UpdateRequestProcessor?action=diff&rev1=17&rev2=18
Comment:
Replaced CustomUpdateRequestProcessorFactory (only defined in the test code) with an entirely fictional class to better illustrate usage with custom code.
{{{
<updateRequestProcessorChain name="mychain" default="true">
- <processor class="solr.CustomUpdateRequestProcessorFactory" >
+ <processor class="com.example.MyCustomProcessorFactory" >
<lst name="name">
<str name="n1">x1</str>
<str name="n2">x2</str>
@@ -23, +23 @@
</updateRequestProcessorChain>
}}}
- Allmost all processor chains should end with an instance of {{{RunUpdateProcessorFactory}}} unless the user is explicitly executing the update commands in an alternative custom {{{!UpdateRequestProcessorFactory}}}.
+ Note the entirely custom class in this example called "com.example.MyCustomProcessorFactory". This is an example of a class that you might create yourself by writing Java code that extends the UpdateRequestProcessorFactory class.
+ Almost all processor chains should end with an instance of {{{RunUpdateProcessorFactory}}} unless the user is explicitly executing the update commands in an alternative custom {{{!UpdateRequestProcessorFactory}}}.
+
- At most one processor may be configured as the "default". if no processor is configured as a default, then an implicit default useing {{{LogUpdateProcessorFactory}}} and {{{RunUpdateProcessorFactory}}} is created for you.
+ At most one processor chain may be configured as the "default". if no processor is configured as a default, then an implicit default using {{{LogUpdateProcessorFactory}}} and {{{RunUpdateProcessorFactory}}} is created for you. Supplying a default processor chain may be the only way to affect documents indexed from some sources like the dataimport handler.
= Selecting the UpdateChain for Your Request =
- Once one or more update chains are defined, you may select one on the update request through the parameter {{{update.chain}}}
+ Once one or more update chains are defined, you may select one on the update request through the parameter {{{update.chain}}}
- Example: {{{http://localhost:8983/solr/update/xml?update.chain=mychain}}}.
+ Example: {{{http://localhost:8983/solr/update/xml?update.chain=mychain}}}.
<!> '''Note:''' for Solr versions prior to [[Solr3.2]] you need to use {{{update.processor}}} instead <!>