How to apply `filter_path` when using `scroll` API?
See original GitHub issueI have documents of type page
with two fields: url
and content
. I want to search in both url
and content
values but I want to get only url
in my results. It can be done using filter_path
param when using search
API. But I need to use scroll
API to get bigger number of results. But result of scroll
API contains content
values too.
How can I force scroll
API to return required fields only?
Thank you.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Scroll API | Elasticsearch Guide [8.5] | Elastic
You can use the scroll API to retrieve large sets of results from a single scrolling search request. The scroll API requires a...
Read more >Usage of filter_path with helpers.scan in elastisearch client
The scan helper currently doesn't allow passing extra parameters to the scroll API so your filter_path doesn't apply to it. It does, however,...
Read more >Elasticsearch Scroll - How to Use the Scroll API, Including ...
The scroll API enables you to take a snapshot of a large number of results from a single search request. Examples. To perform...
Read more >esapi - Go Packages
Package esapi provides the Go API for Elasticsearch. ... WithIndex - a list of index names; use _all to perform the operation on...
Read more >How Do You Scroll in Elasticsearch? - Linux Hint
This concise guide will teach you to scroll through the documents returned from a search query using the scroll API. It is good...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, sorry, I was wrong. I can use
filter_path
with no problem when usingscroll
API. Why you recommend to use scan instead of search?@HonzaKral i am facing one more problem while using source filtering, i cant get the value in nested source, using filter_path im able to do that.