Repository navigation
Convert OpenSearch Benchmark's scroll into a paginated-search with a cursor - #180
Open
serhiy-bzhezytskyy wants to merge 2 commits into
Open
serhiy-bzhezytskyy wants to merge 2 commits into
serhiy-bzhezytskyy wants to merge 2 commits into
Conversation
…cursor A search with pages and results-per-page is how OpenSearch Benchmark writes a scroll. The converter kept it a search, which Solr answers with one page, so the operation paged nothing. It now becomes a paginated-search: the body's query and filters become q and fq, and the sort is upstream's with id asc appended, or id asc alone, because a cursor needs a sort ending with the uniqueKey and refuses _docid_. No fl is set, so each page returns the stored fields. A paginated-search now targets the workload's collection when it names none, as a bare commit or refresh does.
# Conflicts: # solrorbit/conversion/workload_converter.py
This branch has not been deployed
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.
A
searchwithpagesandresults-per-pageis how OpenSearch Benchmark writes a scroll. The converter kept it asearch, which Solr answers with one page, so the operation paged nothing.It now becomes a
paginated-search:qandfq;id ascappended, orid ascalone, because a cursor needs a sort ending with the uniqueKey and refuses_docid_;flis set, so each page returns the stored fields.A
paginated-searchnow also targets the workload's collection when it names none, as a bare commit or refresh does.For geonames the converter now writes the scroll operation of solr-orbit-workloads. On a 1,000,436-document sample it reads 25 pages of 1000 documents, as OpenSearch's scroll does. The new tests fail without the change.