I'm new to elastic search so pardon me if you think this question is silly. So i'm facing issues while adding the records to my index. As soon as 10000 records are added to the index, my index doesn't take the records beyond that. Like for example if i'm trying to insert 20000 records at once, only 10000 records gets indexed. No documents are indexed after 10000 records.
I tried increasing the heap size still no improvement. This issue persist not only for single index but also for the multiple index having records above 10000.
Please help.
Thanks in advance
Thanks for the reply.
yes you are right i was passing the wrong query to see the number of items in the index.
I used _count to check the total number of items in the index and its showing right.
Thank you so much.. Also i wanted to fetch all the items inside my index but currently only 10000 records is returned. Any workaround to fetch all the records from index?
I have used scroll to fetch the records..But my motive is to retrieve 6-7Lakhs of data on one go. In my current scenario i'm fetching 5k data at a time using scroll with while loop. I actually want to overcome the loop so as to avoid overhead.
Hi Nimisha,
Ok, I get your point, although I still believe that the scroll api is the way to go.
If you really wanted to, you could override the index.max_result_window setting, although I don't believe that is recommended, since it would eat into the heap memory and might cause OOM exceptions at some point.
Derk
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.