ElasticSearch Essentials

ElasticSearch Essentials [Paid] 3.15.12

No permission to buy ($30.00)
I got several logs for this error today:
Code:
Server error log
LogicException: Could not determine the title of the content for complete; please override src/addons/SV/ElasticSearchEssentials/Entity/AutoCompleteTrait.php:17
Generated by: User Jul 3, 2019 at 3:40 PM
Stack trace
#0 src/addons/SV/ElasticSearchEssentials/XF/Pub/View/Search/Suggestion.php(31): SV\ElasticSearchEssentials\XF\Entity\Thread->getTitleForAutoComplete()
#1 src/XF/Mvc/Renderer/AbstractRenderer.php(91): SV\ElasticSearchEssentials\XF\Pub\View\Search\Suggestion->renderJson()
#2 src/XF/Mvc/Renderer/Json.php(63): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('SV\\ElasticSearc...', '', Array)
#3 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('SV\\ElasticSearc...', '', Array)
#4 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#5 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#6 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#7 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#8 src/XF.php(390): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}
Request state
array(4) {
  ["url"] => string(186) "/index.php?search/search&autocomplete=1&keywords=TNT%20ml%20%400&c%5Busers%5D=&_xfToken=1562139532%2C8213c1f8a632945416605ff122fe39ae&_xfRequestUri=%2F&_xfWithData=1&_xfResponseType=json"
  ["referrer"] => string(25) "https://www.dom.com/"
  ["_GET"] => array(8) {
    ["search/search"] => string(0) ""
    ["autocomplete"] => string(1) "1"
    ["keywords"] => string(9) "TNT ml @0"
    ["c"] => array(1) {
      ["users"] => string(0) ""
    }
    ["_xfToken"] => string(43) "1562139532,8213c1f8a632945416605ff122fe39ae"
    ["_xfRequestUri"] => string(1) "/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
@Xon

Seeing this in our AdminCP under Enhanced Search. Realized we were running 3.1.1 when we did the last rebuild so we just updated, but wanted to ask as it takes a long time to rebuild our search index.

1563472593474.webp
 
@Joe Link if you aren't using the auto-complete or similar threads feature it is fine to ignore that. Otherwise the search results may be improved (or may be made worse, can honestly be a bit of a toss up) if you optimize the index & then re-index.

The add-on comes with an xf-rebuild:search-bulk CLI command which is a multi-process search rebuilder which is vastly faster than the stock single threaded version. Assuming you have sufficient resources for ElasticSearch
 
@Xon Please can you add functionality Displays indexes information. This is very useful for deleting no longer used Elasticsearch indexes.
 
That is already implemented. It is a per-forum option "Limit similar threads results by"
1568283448877.png

Note; if you do 'this forum and any child forums' and a child forum has "all" set it will pull in all results which may be unexpected.
 
Nope, auto-complete just supports threads. It is however designed to be expanded and support additional content types
 
Nope, unrelated. Those are just a race condition in XenForo. Which I believe 2.1.4 actually adds a workaround for
 
Top Bottom