question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to apply `filter_path` when using `scroll` API?

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Joscacommented, Jun 19, 2017

Oh, sorry, I was wrong. I can use filter_path with no problem when using scroll API. Why you recommend to use scan instead of search?

0reactions
sand33p-23commented, Dec 12, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found