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

Size of query ignored? #18

Open
nikolang opened this issue Sep 9, 2015 · 5 comments
Open

Size of query ignored? #18

nikolang opened this issue Sep 9, 2015 · 5 comments
Labels

Comments

@nikolang
Copy link

nikolang commented Sep 9, 2015

I am trying to export 500 of several millions artivles in my ES database. To do so I added the "size":500 - Parameter in the JSON (URL encoded the source-Parameter). This works well for the normal _search but for the _data?format=csv it seems the size is ignored and instead the plugin writes all my million articles into one file.

Can anyone confirm this or give a hint what I am doing wrong?

@marevol
Copy link
Contributor

marevol commented Sep 9, 2015

The default behavior for specifying size is scroll-scan search.
If you want to set a document size, could you try to add search_type request parameter(ex. _data?format=csv&search_type=query_then_fetch).

@marevol
Copy link
Contributor

marevol commented Sep 11, 2015

Oh, please use "from", instead of search_type.
.../_data?format=json&size=10000&from=0&...

@joy-n-craft
Copy link

I also have this issue. Any help with limit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants