You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "mouhcine (Jira)" <ji...@apache.org> on 2023/11/27 16:28:00 UTC
[jira] [Updated] (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:all-tabpanel ]
mouhcine updated SOLR-17085:
----------------------------
Description:
([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.
was:
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.
> 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
> Security Level: Public(Default Security Level. Issues are Public)
> 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