Installing 2.0.2 and getting error

When I hit the "test settings" I get this:

XFES\Elasticsearch\RequestException: Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [xf : {_source={enabled=false}, properties={date={store=true, type=long}, hidden={type=boolean}, content_id={type=long}, prefix={type=long}, thread={type=long}, title={type=text}, message={type=text}, type={type=keyword}, node={type=long}, profile_user={type=long}, mediaalbum={type=long}, content_type={type=text}, discussion_id={store=true, type=long}, tag={type=long}, user={store=true, type=long}, mediacat={type=long}}}] in src/addons/XFES/Elasticsearch/Api.php at line 387
  1. XFES\Elasticsearch\Api->request() in src/addons/XFES/Elasticsearch/Api.php at line 287
  2. XFES\Elasticsearch\Api->createIndex() in src/addons/XFES/Service/Optimizer.php at line 85
  3. XFES\Service\Optimizer->optimize() in src/addons/XFES/Service/Configurer.php at line 67
  4. XFES\Service\Configurer->initializeIndex() in src/addons/XFES/Admin/Controller/EnhancedSearch.php at line 129
  5. XFES\Admin\Controller\EnhancedSearch->actionSetup() in src/XF/Mvc/Dispatcher.php at line 249
  6. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
  7. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
  8. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1934
  9. XF\App->run() in src/XF.php at line 333
  10. XF::runApp() in admin.php at line 13


Test seems OK?

root@ppride:/etc/elasticsearch# curl -XGET 'localhost:9200'
{
"name" : "node-1",
"cluster_name" : "my-application",
"cluster_uuid" : "QDGyNsGHTkmwmsxWVxPT6w",
"version" : {
"number" : "7.1.1",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "7a013de",
"build_date" : "2019-05-23T14:04:00.380842Z",
"build_snapshot" : false,
"lucene_version" : "8.0.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
 
Dump question...
I use ES 7.x for xf 2.1.x and above as also for 1.5.24.

In 1.5.24 I have the same (similar) error. Is there a way to solve this for 1.5.x to?

Code:
Exception: Error creating Elasticsearch index: Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [xf : {_source={enabled=false}, properties={date={store=true, type=long}, discussion_id={store=true, type=long}, title={type=text}, message={type=text}, type={type=keyword}, user={store=true, type=long}}}]. Attempted creation without mappings. - library/XenES/Model/Elasticsearch.php:265
Code:
#0 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/library/XenES/Model/Elasticsearch.php(233): XenES_Model_Elasticsearch->createOptimizedIndex('hobbygartenteic...', Array)
#1 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/library/XenES/Search/SourceHandler/ElasticSearch.php(159): XenES_Model_Elasticsearch->recreateIndex()
#2 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/library/XenForo/Deferred/SearchIndex.php(62): XenES_Search_SourceHandler_ElasticSearch->deleteIndex(NULL)
#3 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_SearchIndex->execute(Array, Array, 8, '')
#4 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 8, '', false)
#5 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
#6 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/library/XenForo/ControllerAdmin/Tools.php(159): XenForo_Model_Deferred->run(true, NULL, '', false)
#7 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/library/XenForo/FrontController.php(369): XenForo_ControllerAdmin_Tools->actionRunDeferred()
#8 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /var/www/vhosts/hobby-gartenteich.de/httpdocs/xf/admin.php(13): XenForo_FrontController->run()
#10 {main}
Code:
array(3) {
  ["url"] => string(64) "https://www.hobby-gartenteich.de/xf/admin.php?tools/run-deferred"
  ["_GET"] => array(1) {
    ["tools/run-deferred"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["redirect"] => string(69) "https://www.hobby-gartenteich.de/xf/admin.php?tools/rebuild&success=1"
    ["execute"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
  }
}
 
All of XF 1.x (and our official add-ons) are no longer supported, so in terms of XF/XFES, we could really only recommend upgrading. The only other option would be to downgrade Elasticsearch to a version that an older version (that works with XFES 1.x).
 
Back
Top Bottom