You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2024/03/01 06:04:00 UTC
[jira] [Commented] (SOLR-17085) Query Elevation based on Filter Query "fq" field
[ https://issues.apache.org/jira/browse/SOLR-17085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822393#comment-17822393 ]
David Smiley commented on SOLR-17085:
-------------------------------------
What is the use-case where this is needed? I could imagine instead a tweak in which we indicate a parameter name that holds the query, defaulting to "q" but you could use whatever you want. That would be way more flexible than assuming exactly one "fq" param as I see in your PR.
> Query Elevation based on Filter Query "fq" field
> ------------------------------------------------
>
> Key: SOLR-17085
> URL: https://issues.apache.org/jira/browse/SOLR-17085
> Project: Solr
> Issue Type: New Feature
> Components: SearchComponents - other
> Reporter: mouhcine
> Priority: Minor
> Attachments: image-2023-11-27-16-58-06-472.png
>
>
> ([PR-2098|https://github.com/apache/solr/pull/2098])
> This ticket introduces a new QueryElevation related feature.
> Currently, QueryElevationComponent is implemented and can be used to configure/customize the top results for a given query, depending on the field query "{color:#0747a6}*q*{color}" .
> This ticket suggests an extension of this feature that allows users to configure the top results, based on the Filter Query field "{*}{color:#0747a6}fq{color}{*}" as well.
> Below is an example query.
> !image-2023-11-27-16-58-06-472.png!
> Based on the "{*}{color:#0747a6}fq{color}{*}" field value, we would get, as top results, regardless of the normal Lucene scoring, the elements configured in *{color:#0747a6}elevate.xml{color}* schema.
> {code:java}
> <query text="cat:electronics">
> <doc id="TWINX2048-3200PRO" />
> <doc id="VDBDB1A16" />
> <doc id="EN7800GTX/2DHTV/256M" />
> </query>{code}
> Instead of having a classic value for the "{*}{color:#0747a6}text{color}{*}" field in the {color:#0747a6}*<query>*{color} tag in the code snippet above, introducing a Filter Query expression allows to configure top results for queries having the an "{*}{color:#0747a6}fq{color}{*}" field value containing "{*}{color:#0747a6}cat:electronics{color}{*}", and therefore, they will be returned in the top of the results list.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org