Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing code to cut search results of hybrid search in the priority queue #867

Merged

Conversation

vibrantvarun
Copy link
Member

@vibrantvarun vibrantvarun commented Aug 16, 2024

Description

This PR removes the code where we cut the results of hybrid search while fetching topDocs(). Due to this piece of code the user gets a perception that pagination works in hybrid search however it does not. Therefore, to make cx experience better I am removing it.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Varun Jain <varunudr@amazon.com>
@vibrantvarun vibrantvarun changed the title Removing code to cut results in the priority queue Removing code to cut search results of hybrid search in the priority queue Aug 26, 2024
@vibrantvarun vibrantvarun marked this pull request as ready for review August 26, 2024 17:36
@vibrantvarun
Copy link
Member Author

Will wait for @martin-gaievski to review this PR.

Signed-off-by: Varun Jain <varunudr@amazon.com>
Signed-off-by: Varun Jain <varunudr@amazon.com>
Signed-off-by: Varun Jain <varunudr@amazon.com>
@martin-gaievski
Copy link
Member

please add a unit test for case when from param is set in the search query to make sure we're throwing exception

Signed-off-by: Varun Jain <varunudr@amazon.com>
@martin-gaievski
Copy link
Member

Looks good to me, thanks Varun

@vibrantvarun vibrantvarun added the backport 2.x Label will add auto workflow to backport PR to 2.x branch label Sep 4, 2024
@vibrantvarun vibrantvarun merged commit b8e2b35 into opensearch-project:main Sep 4, 2024
39 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2024
…queue (#867)

* Removing code to cut results in the priority queue

Signed-off-by: Varun Jain <varunudr@amazon.com>

* throw exception when from is not equal to 0

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Adding TODO check

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Move pagination validation of from condition to query phase searcher

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Adding integ test

Signed-off-by: Varun Jain <varunudr@amazon.com>

---------

Signed-off-by: Varun Jain <varunudr@amazon.com>
(cherry picked from commit b8e2b35)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2024
…queue (#867)

* Removing code to cut results in the priority queue

Signed-off-by: Varun Jain <varunudr@amazon.com>

* throw exception when from is not equal to 0

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Adding TODO check

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Move pagination validation of from condition to query phase searcher

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Adding integ test

Signed-off-by: Varun Jain <varunudr@amazon.com>

---------

Signed-off-by: Varun Jain <varunudr@amazon.com>
(cherry picked from commit b8e2b35)
vibrantvarun added a commit that referenced this pull request Sep 4, 2024
…queue (#867) (#881)

* Removing code to cut results in the priority queue

Signed-off-by: Varun Jain <varunudr@amazon.com>

* throw exception when from is not equal to 0

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Adding TODO check

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Move pagination validation of from condition to query phase searcher

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Adding integ test

Signed-off-by: Varun Jain <varunudr@amazon.com>

---------

Signed-off-by: Varun Jain <varunudr@amazon.com>
(cherry picked from commit b8e2b35)

Co-authored-by: Varun Jain <varunudr@amazon.com>
vibrantvarun added a commit that referenced this pull request Sep 4, 2024
…queue (#867) (#880)

* Removing code to cut results in the priority queue

Signed-off-by: Varun Jain <varunudr@amazon.com>

* throw exception when from is not equal to 0

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Adding TODO check

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Move pagination validation of from condition to query phase searcher

Signed-off-by: Varun Jain <varunudr@amazon.com>

* Adding integ test

Signed-off-by: Varun Jain <varunudr@amazon.com>

---------

Signed-off-by: Varun Jain <varunudr@amazon.com>
(cherry picked from commit b8e2b35)

Co-authored-by: Varun Jain <varunudr@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Label will add auto workflow to backport PR to 2.x branch backport 2.17 skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants