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

David Smiley commented on SOLR-14382:
-------------------------------------

Ehh; I'm kinda skeptical on the value it brings to add to Solr-core.  At least 
what you propose is simple / small.  I know it may be a hollow suggestion to 
suggest it as an external plugin because we don't yet have a repository for it 
to be discoverable but that's where I'm leaning.

> delegating search component
> ---------------------------
>
>                 Key: SOLR-14382
>                 URL: https://issues.apache.org/jira/browse/SOLR-14382
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> An out-of-the-box search component that supports the configuration and 
> selective use of custom search components.
> Illustrative solrconfig.xml snippet:
> {code:java}
> <searchComponent name="queryDefault" 
> class="org.apache.solr.handler.component.QueryComponent"/>
> <searchComponent name="queryFoo" class="com.company.team.FooQueryComponent"/>
> <searchComponent name="queryBar" class="com.company.team.BarQueryComponent"/>
> <searchComponent name="query" 
> class="org.apache.solr.handler.component.DelegatingSearchComponent">
>   <str name="mappings.default">queryDefault</str>
>   <lst name="mappings">
>     <str name="foo">queryFoo</str>
>     <str name="bar">queryBar</str>
>   </lst>
>   <str name="category">QUERY</str>
> </searchComponent>
> {code}
> Illustrative queries:
>  * for {{/select?q=\*:\*}} the default case i.e. QueryComponent is used
>  * for {{/select?q=\*:\*&foo=true}} the FooQueryComponent is used
>  * for {{/select?q=\*:\*&bar=true}} the BarQueryComponent is used



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to