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

Support for deep paging for Facets #321

Merged
merged 25 commits into from
Jul 27, 2023

Conversation

nzdev
Copy link
Contributor

@nzdev nzdev commented Dec 12, 2022

Support for deep paging for faceted search.

Builds on #320 and #311

Deep paging documentation applies for both Faceted and non faceted search.
Added tests.

Deep Paging

When using Lucene.NET as the Examine provider it is possible to more efficiently perform deep paging.
Steps:

  1. Build and execute your query as normal.
  2. Cast the ISearchResults from IQueryExecutor.Execute to ILuceneSearchResults
  3. Store ILuceneSearchResults.SearchAfter (SearchAfterOptions) for the next page.
  4. Create the same query as the previous request.
  5. When calling IQueryExecutor.Execute. Pass in new LuceneQueryOptions(skip,take, SearchAfterOptions); Skip will be ignored, the next take documents will be retrieved after the SearchAfterOptions document.
  6. Repeat Steps 2-5 for each page.

@nzdev nzdev mentioned this pull request Dec 12, 2022
5 tasks
@nzdev nzdev mentioned this pull request Dec 22, 2022
@nikcio
Copy link
Contributor

nikcio commented Jul 26, 2023

@nzdev #311 has been merged to release/4.0 so could you change the target branch for this PR to release/4.0 and could you rebase or merge the branch into your PR branch to handle any merge conflicts? 😄

@nzdev nzdev changed the base branch from release/3.0 to release/4.0 July 26, 2023 05:07
@nzdev
Copy link
Contributor Author

nzdev commented Jul 26, 2023

Done

@Shazwazza
Copy link
Owner

This looks like a subset of the other PR right? #323

@nzdev
Copy link
Contributor Author

nzdev commented Jul 26, 2023

Yes, Can be merged independently for the SortedDocValues approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants