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

Christine Poerschke commented on SOLR-14382:
--------------------------------------------

bq. ... kinda skeptical on the value it brings to add to Solr-core. ... suggest 
it as an external plugin ...

It hadn't occurred to me but yes, this seems a very good fit for a plugin in 
the packaging system because:
* Adding it to {{solr-core}} is unintuitive because the use case for the 
component is to use {{solr-core}} *with* {{some-other-stuff}} i.e. there is no 
pure out-of-the-box Solr use case for the component.
* In a out-of-the-box Solr plus "other stuff" use case the other stuff 
hopefully will in future come from the packaging system in many cases and then 
the component here is just another package amongst others, albeit a slim "glue" 
style component for combining other packaged components at configuration time 
i.e. without build time dependencies.

I'll close this ticket here as "won't do" for clarity, likewise for the pull 
request.

Thanks for the input!

> 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