Error optimising and rebuilding search index with Enhanced Search enabled.

Lee

Well-known member
Affected version
2.3 beta 5
Is there something not configured in our ElasticSearch build or is this a bug?

XFES\Elasticsearch\RequestException: Failed to parse mapping: analyzer [suggest] has not been configured in mappings in src/addons/XFES/Elasticsearch/Api.php at line 464
  1. XFES\Elasticsearch\Api->request() in src/addons/XFES/Elasticsearch/Api.php at line 361
  2. XFES\Elasticsearch\Api->createIndex() in src/addons/XFES/Service/Optimizer.php at line 74
  3. XFES\Service\Optimizer->optimize() in src/addons/XFES/Admin/Controller/EnhancedSearch.php at line 185
  4. XFES\Admin\Controller\EnhancedSearch->actionOptimize() in src/XF/Mvc/Dispatcher.php at line 352
  5. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
  6. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  7. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  8. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2592
  9. XF\App->run() in src/XF.php at line 532
  10. XF::runApp() in admin.php at line 13
 
This should be handled better, but I think if you try toggling an analyzer setting (like stop words or stemming) on/off, and then reoptimize and rebuild the index it should work.
 
This should be handled better, but I think if you try toggling an analyzer setting (like stop words or stemming) on/off, and then reoptimize and rebuild the index it should work.
Yes, that fixes the error. But search suggestions are still not working. When typing a query, no suggestions are presented, even with this enabled.
 
This should be handled better, but I think if you try toggling an analyzer setting (like stop words or stemming) on/off, and then reoptimize and rebuild the index it should work.
Yes it helped. Will this be fixed? Or is this not a bug, but a feature?
 
finally logging something- taking a LOT of memory.
Server error log
  • ErrorException: Fatal Error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 2621440 bytes)
  • src/XF/Mvc/Entity/Manager.php:809


will reduce steps per page to 50 from 500.
edit- didn't work... bumped php ini setting to 256.
failed again later (20k records). bumping to 512 (ridiculous!)

It should be noted that i've rebuilt this index on this server countless times before on 2.2 without issue with 160. I've added a handful of posts since. I've now 4x'ed the resources and reduced from 500 to 25 per page. and it still fails, a little further on, but not even close to successful. very strange.
 
Last edited:
seeing this as well, what's the fix?

toggling stopwords/etc as above doesn't change anything.
using a default theme more or less too - just some color changes. reverted all templates.
Try the attached file @Jeremy P posted here:
 
Back
Top Bottom