How can i fetch all the records which matches by searching some text of all the fields for specific index using java api?

How can i fetch all the records which matches by searching some text of all
the fields for specific index using java api?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ee99bb2e-eb09-4f9e-a05f-8f7c472c728d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ES does not return all the records by default, you will have to pass
thepage size in request. Other way to do this to use count query first the
pass the size in 2nd query.
I tried with passing size as Max integer but some time it started going OOM
because Lucene allocates memory to size passed in request.

Best way is to count first then pass the size in 2nd query.

On Friday, 7 November 2014 03:27:00 UTC+5:30, Subbarao Kondragunta wrote:

How can i fetch all the records which matches by searching some text of
all the fields for specific index using java api?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/47aed74f-c5c9-4cdf-a7b0-0e7a68043d57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I'd prefer using scroll API.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 7 nov. 2014 à 13:22, Pankaj Kumar pankajmail@gmail.com a écrit :

ES does not return all the records by default, you will have to pass thepage size in request. Other way to do this to use count query first the pass the size in 2nd query.
I tried with passing size as Max integer but some time it started going OOM because Lucene allocates memory to size passed in request.

Best way is to count first then pass the size in 2nd query.

On Friday, 7 November 2014 03:27:00 UTC+5:30, Subbarao Kondragunta wrote:
How can i fetch all the records which matches by searching some text of all the fields for specific index using java api?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/47aed74f-c5c9-4cdf-a7b0-0e7a68043d57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/913BBD70-0153-4479-AA8F-667C4F47EF22%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.