Query Elevation based on Filter Query "fq" field#2098
Closed
BMouhcine wants to merge 4 commits intoapache:mainfrom
Closed
Query Elevation based on Filter Query "fq" field#2098BMouhcine wants to merge 4 commits intoapache:mainfrom
BMouhcine wants to merge 4 commits intoapache:mainfrom
Conversation
|
This PR had no visible activity in the past 60 days, labeling it as stale. Any new activity will remove the stale label. To attract more reviewers, please tag someone or notify the dev@solr.apache.org mailing list. Thank you for your contribution! |
|
This PR is now closed due to 60 days of inactivity after being marked as stale. Re-opening this PR is still possible, in which case it will be marked as active again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://issues.apache.org/jira/browse/SOLR-17085
Description
This PR introduces a new Query Elevation 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 "q" .
This patch suggests an extension of this feature that allows users to configure the top results, based on the Filter Query field "fq" as well.
Solution
The Query Elevation based on Filter Query "fq" field is configured in the same way as for query field "q".
Here's an example of a
<query>element in elevate.xml schema.As for the query:

Having all of this, by running the SOLR query, the elements/documents defined in the elevate.xml schema snippet above, will be returned in the top of the results list.
Tests
Tests written and run alongside the Query Elevation Tests that already exist.
The files concerned are: QueryElevationComponentTest.java and elevate.xml.
Checklist
Please review the following and check all that apply:
mainbranch../gradlew check.