• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Error when rebuilding search index if per page > 2500

Mike

XenForo developer
Staff member
#1
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.