[ https://issues.apache.org/jira/browse/SOLR-14382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17074774#comment-17074774 ]
Christine Poerschke commented on SOLR-14382: -------------------------------------------- Looking beyond the QueryComponent and custom multiplexing, I wonder if there might be a wider use case for a configurable delegating search component i.e. an out-of-the-box search component that would also support multiplexing e.g. for the debug, faceting or highlighting components? {code} <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"> <lst name="mappings"> <str name="foo">queryFoo</str> <str name="bar">queryBar</str> </lst> </searchComponent> {code} Via solrconfig.xml configuration like the above the default query component is replaced and a {{&foo=true}} parameter would result in use of the {{FooQueryComponent}} whereas use of {{&bar=true}} would result in use of the {{BarQueryComponent}} component. If neither {{&foo=true}} nor {{&bar=true}} are present the search will fail, perhaps defaulting could be helpful in some scenarios e.g. {code} <searchComponent name="debugDefault" class="org.apache.solr.handler.component.DebugComponent"/> <searchComponent name="debugCustom" class="com.company.team.DebugComponent"/> <searchComponent name="debug" class="org.apache.solr.handler.component.DelegatingSearchComponent"> <str name="mappings.default">debugDefault</str> <lst name="mappings"> <str name="debug.custom">debugCustom</str> </lst> </searchComponent> {code} with a {{&debug.custom=true}} parameter resulting in use of a custom debug component and with {{&debug.custom=false}} or the absence of the {{&debug.custom}} parameter defaulting to use of the out-of-the-box DebugComponent. > 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 > > (details to follow) -- 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