[ 
https://issues.apache.org/jira/browse/SOLR-2823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125595#comment-13125595
 ] 

Hoss Man commented on SOLR-2823:
--------------------------------

Jan: Seems like it would also make sense to think about common "sub-chains" 
that are re-used -- sequences of processors used in conjunction with one 
another. Since we already have named processor chains, maybe it would be enough 
to say that (instead of naming individual processors) you could specify any 
chain, by name, as a sub-chain...

{code}
<updateRequestProcessorChain name="crawl">
  <processor class="com.example.MyCrawlSpecificProcessor" />
  <subchain ref="common-chain" />
</updateRequestProcessorChain>

<updateRequestProcessorChain name="cms">
  <processor class="com.example.MyCmsSpecificProcessor" />
  <subchain ref="common-chain" />
</updateRequestProcessorChain>

<updateRequestProcessorChain name="common-chain">
  <processor name="langid" 
class="solr.LanguageIdentifierUpdateProcessorFactory">
    <str name="langid.fl">text,title,subject,description</str>
    <str name="langid.langField">language_s</str>
    <str name="langid.fallback">en</str>
  </processor>
  <processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>
{code}

...what do you think?

(probably have to watch out for infinite loops, but that should be a fairly 
straightforward check when instantiating the chains, and we can fail fast.)


                
> Re-use of UpdateProcessor configurations in multiple UpdateChains
> -----------------------------------------------------------------
>
>                 Key: SOLR-2823
>                 URL: https://issues.apache.org/jira/browse/SOLR-2823
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>            Reporter: Jan Høydahl
>            Priority: Minor
>
> When dealing with multiple UpdateChains and Processors, you frequently need 
> to re-use configuration. Two chains may be equal except for one config 
> setting in one <processor>.
> I propose to allow named processor configs, which can be referenced by name 
> in the chains.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to