I have a task where I need to sort by the field "_id" I knew that I should not use this field for sorting and that instead it is better to add an extra field the has the same value as _id and then I can use that field for sorting. In order to achieve that I am trying to reindex my data.
However, when I try to run the previous code I got the following error: Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting.
The index has 5 shards.
The index is used as a data source for a React application that is built with Reactivesearch and I think they do use scroll searches to get the data.
then there are probably a lot of scroll searches going on in parallel. Scroll searches are not supposed to be used by applications with many parallel queries.
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.