You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Christine Poerschke (Jira)" <ji...@apache.org> on 2020/04/03 18:11:00 UTC
[jira] [Commented] (SOLR-14382) delegating search component
[ https://issues.apache.org/jira/browse/SOLR-14382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17074771#comment-17074771 ]
Christine Poerschke commented on SOLR-14382:
--------------------------------------------
We have a use case for two distinct {{QueryComponent}} customisations for field vs. score sorted searches.
This could be supported via two different search handlers e.g.
{code}
<searchComponent name="queryFoo" class="com.company.team.FooQueryComponent"/>
<requestHandler name="/selectFoo" class="solr.SearchHandler">
<arr name="components">
...
<str>queryFoo</str>
...
</arr>
...
</requestHandler>
<searchComponent name="queryBar" class="com.company.team.BarQueryComponent"/>
<requestHandler name="/selectBar" class="solr.SearchHandler">
<arr name="components">
...
<str>queryBar</str>
...
</arr>
...
</requestHandler>
{code}
but this would introduce complexity on the client side i.e. the client needs to send to different end-points depending on the type of search.
As an alternative to this we think a custom 'query component multiplexer' could work e.g.
{code}
<searchComponent name="query" class="com.company.team.QueryComponentMultiplexer"/>
{code}
replaces the default {{org.apache.solr.handler.component.QueryComponent}} and switches behaviour depending on the search parameters.
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org