Fixed Error when rebuilding search index if per page > 2500

Mike

XenForo developer
Staff member
In library/XenES/Search/SourceHandler/ElasticSearch.php, change:
Code:
$result = XenES_Api::indexBulk($indexName, $contentType, $this->_bulkInserts[$contentType]);
to:
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.
 
A year later and this fix still isn't in the version of ES I downloaded just now... good thing Google's up to date, at least. :rolleyes:
 
Top Bottom