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
Remove (dfs_)query_and_fetch from the REST API #9606
Comments
Hi @dobariya Essentially, |
Yes that make sense.Please let me know if search type=scan will be a good practice to implement for the above mentioned code? I am having 5 million records indexed |
@dobariya scanning WITH SCROLL is the answer you need, not pagination. Deep pagination is very costly. Scrolling allows you to keep pulling results until you're done, and scanning disables sorting to make that efficient. See http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/scan-scroll.html |
Didn't mean to close - we should still implement this change |
Changed search_type docs to reflect that the `(dfs_)query_and_fetch` modes are an internal optimization and should not be specified explicitly by the user. Relates to #9606
Changed search_type docs to reflect that the `(dfs_)query_and_fetch` modes are an internal optimization and should not be specified explicitly by the user. Relates to #9606
Changed search_type docs to reflect that the `(dfs_)query_and_fetch` modes are an internal optimization and should not be specified explicitly by the user. Relates to #9606
Changed search_type docs to reflect that the `(dfs_)query_and_fetch` modes are an internal optimization and should not be specified explicitly by the user. Relates to #9606
Changed search_type docs to reflect that the `(dfs_)query_and_fetch` modes are an internal optimization and should not be specified explicitly by the user. Relates to elastic#9606
According to Elastic search if working with Query_and_fetch will return size times number of shards hits.Following this rule I implemented below query using Nest having 5 shards
If I have total 17 records in index then according to the rule above query should execute 4 times returning 5,5,5,2 = 17 total records but this is not the case in the above query.
Above query executes 4 times returning 5,3,3,1 = 12 records missing 5 records.
Am I doing anything wrong or missing anything?
The text was updated successfully, but these errors were encountered: