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

Scroll URL length limit #318

Closed
scottc52-zz opened this issue Jul 24, 2013 · 1 comment
Closed

Scroll URL length limit #318

scottc52-zz opened this issue Jul 24, 2013 · 1 comment

Comments

@scottc52-zz
Copy link

I'm using nest to scroll through a scan query.
Nest sends a request using the url: http://{address}:9200/_search/scroll?scroll=10m&scroll_id={scroll_id}
The scroll_id gets longer if you have a lot of shards. For me, with 500 shards, I get an id of length 20708. This causes the last parts of the scroll_id to be thrown away when added to the url.

Would using the syntax from here: http://www.elasticsearch.org/guide/reference/api/search/search-type/
solve the problem?
It would look like this:
curl -XGET 'localhost:9200/_search/scroll?scroll=10m' -d '{scroll_id}'

@Mpdreamz
Copy link
Member

Wow, great edgecase !

Sadly the .NET HttpWebClient doesn't allow for a body data when doing a GET but luckily elasticsearch allows you to do a POST with BODY for almost every GET that has a BODY so the .Scroll() now does a POST.

It still passes the unit/integration tests so be sure to report back once the nest release is out.

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

No branches or pull requests

2 participants