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

fix(query): Fix pagination with match functions #7668

Merged
merged 4 commits into from
Mar 31, 2021

Conversation

ahsanbarkati
Copy link
Contributor

@ahsanbarkati ahsanbarkati commented Mar 30, 2021

Due to narrowing down the query to only fetch N results from the
postings, some of the queries got broken. Some queries like
allofterms requires fetching all the uids/postings from the posting list
corresponding to each term relevant to the queries. And then do an
intersection of the results corresponding to each token.


This change is Reviewable

Copy link
Contributor

@NamanJain8 NamanJain8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 🎉

@NamanJain8
Copy link
Contributor

Also, please cherry-pick it to release/v20.11

@ahsanbarkati ahsanbarkati merged commit e00ed67 into release/v21.03 Mar 31, 2021
@ahsanbarkati ahsanbarkati deleted the ahsan/fix-pagination branch March 31, 2021 08:01
ahsanbarkati added a commit that referenced this pull request Mar 31, 2021
Fix queries involving `regexp`, `allofterms`, `alloftext` and `match`
function with pagination. These functions relies on indexes and
needs to fetch postings/uids for each relevant index key to generate
the final result. Remove early pagination for these cases.

(cherry picked from commit e00ed67)
ahsanbarkati added a commit that referenced this pull request Mar 31, 2021
Fix queries involving `regexp`, `allofterms`, `alloftext` and `match`
function with pagination. These functions relies on indexes and
needs to fetch postings/uids for each relevant index key to generate
the final result. Remove early pagination for these cases.

(cherry picked from commit e00ed67)
ahsanbarkati added a commit that referenced this pull request Apr 1, 2021
Fix queries involving `regexp`, `allofterms`, `alloftext` and `match`
function with pagination. These functions relies on indexes and
needs to fetch postings/uids for each relevant index key to generate
the final result. Remove early pagination for these cases.

(cherry picked from commit e00ed67)
ahsanbarkati added a commit that referenced this pull request Apr 1, 2021
Fix queries involving `regexp`, `allofterms`, `alloftext` and `match`
function with pagination. These functions relies on indexes and
needs to fetch postings/uids for each relevant index key to generate
the final result. Remove early pagination for these cases.

(cherry picked from commit e00ed67)
aman-bansal pushed a commit that referenced this pull request Apr 8, 2021
Fix queries involving `regexp`, `allofterms`, `alloftext` and `match`
function with pagination. These functions relies on indexes and 
needs to fetch postings/uids for each relevant index key to generate
the final result. Remove early pagination for these cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants