In library/XenES/Search/SourceHandler/ElasticSearch.php, change:
to:
The other (easy) way to prevent it is to not push the number of items to process per page over 2500.
Code:
$result = XenES_Api::indexBulk($indexName, $contentType, $this->_bulkInserts[$contentType]);
Code:
$result = XenES_Api::indexBulk($this->_indexName, $contentType, $this->_bulkInserts[$contentType]);
The other (easy) way to prevent it is to not push the number of items to process per page over 2500.