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?
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.