XF 2.0.4 and ES 6.2.3 error

Andy.N

Well-known member
  • XFES\Elasticsearch\RequestException: Elasticsearch indexing error (queued): Rejecting mapping update to [forum] as the final mapping would have more than 1 type: [post, xf]
  • src/addons/XFES/Elasticsearch/Api.php:387
  • Generated by:
  • Mar 22, 2018 at 3:47 PM
Stack trace
#0 src/addons/XFES/Elasticsearch/Api.php(312): XFES\Elasticsearch\Api->request('delete', 'forum/post/1190...', NULL)
#1 src/addons/XFES/Elasticsearch/Api.php(330): XFES\Elasticsearch\Api->requestFromIndex('delete', 'post/119015', NULL)
#2 src/addons/XFES/Elasticsearch/Api.php(180): XFES\Elasticsearch\Api->requestById('delete', 'post', 119015)
#3 src/addons/XFES/Search/Source/Elasticsearch.php(103): XFES\Elasticsearch\Api->delete('post', 119015)
#4 src/XF/Search/Search.php(122): XFES\Search\Source\Elasticsearch->delete('post', 119015)
#5 src/XF/Behavior/Indexable.php(81): XF\Search\Search->delete('post', 119015)
#6 src/XF.php(244): XF\Behavior\Indexable->XF\Behavior\{closure}()
#7 src/XF/Mvc/Dispatcher.php(137): XF::triggerRunOnce(true)
#8 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#10 src/XF.php(328): XF\App->run()
#11 index.php(13): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
["url"] => string(26) "/forum/posts/119015/delete"
["referrer"] => string(72) "https://xxxxxx/forum/threads/9879-hw6-spring-2018.12271/"
["_GET"] => array(1) {
["/forum/posts/119015/delete"] => string(0) ""
}
["_POST"] => array(6) {
["hard_delete"] => string(1) "1"
["_xfRedirect"] => string(72) "https://xxxxx/forum/threads/9879-hw6-spring-2018.12271/"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(42) "/forum/threads/9879-hw6-spring-2018.12271/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Try with the re-indexing with the "Delete the index before rebuilding" option. I'm guessing the single-type support is getting confused.

Very likely that ElasticSearch 6.2.3 is doing something stupid. I don't recommend using multi-type index (ie an old ElasticSearch 5.x index) with ElasticSearch 6.x, IMO their backwards compatibility support is dismal.
 
Try with the re-indexing with the "Delete the index before rebuilding" option. I'm guessing the single-type support is getting confused.

Very likely that ElasticSearch 6.2.3 is doing something stupid. I don't recommend using multi-type index (ie an old ElasticSearch 5.x index) with ElasticSearch 6.x, IMO their backwards compatibility support is dismal.
Thank you. That did it.
 
  • Like
Reactions: Xon
Back
Top Bottom