There are 3 components that could be causing the delay;
What value does "Maximum number of search/find new results" have? Try setting it to 400-500 or less
- Query time for elastic search (http request to elasticsearch)
- mysql fetching results (mysql query)
- php processing results
?limit=100
or similar? I'd be totally fine with showing only 100 results for the particular query I showed in my previous post, but not for all forum searches, altough I think the real issue must be somewhere else.They options do work together (for "relevancy" search but are ignored for other sort types), but sadly these do require some tinkering. These features where funded for a client, and part of that was tinkering with weighting for their setup.Hi @Xon, great work! Just renewed all my licenses yesterday. Now I'm ready to move to XF 2.2
I'm wondering how the "Weight by X" feature works and what numbers you would recommend:
View attachment 248357
Would you set them lower or higher? While I'm trying to figure it out and test the search results I have no feeling yet about how high and in which relation the numbers should be set.
And since your other addon "Search Improvements" also offer weighting (based on content type) I was wondering if these values are considered in the same calculation or if there is an independend weight caluclation going on?
View attachment 248358
Thanks for your help!
multiply
is a little easier to reason with, as values more easily stack together.Searching for deleted threads should work via advanced search.Soft deleted threads no longer visible for staff on find all threads page on user profile:
View attachment 248370
They are visible without this addon.
It works, no problem with that.Searching for deleted threads should work via advanced search.
@Xon will there be a fix for this issue, it is important for moderators?Soft deleted threads no longer visible for staff on find all threads page on user profile:
Check your widgets and disable what you don't want.After installing this addon I have double section "Similar threads" on every page.
Disable the "Enable suggestions only for the first page of search results" option.And second question how to disable "Did you mean:" on search results?
This only shows up for users who can see deleted items, and it is really handy to exclude deleted items if you are a moderator. Otherwise you can just edit the templateHow I can remove this section from search page?
View attachment 248495
svESE_search_form_macros_deleted_macro
and the macro deleted
to remove this option. (don't remove the macro, just make it empty, or wrap a conditional check around it).This is a bug which will be fixed in the next version so the user's "include deleted" default options are respected.@Xon will there be a fix for this issue, it is important for moderators?
XFES\Elasticsearch\ConnectException: Elasticsearch error: cURL error 28: Operation timed out after 20000 milliseconds with 0 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) src/addons/XFES/Elasticsearch/Api.php:391
Generated by: Bergamo Mar 18, 2021 at 3:46 PM
Stack trace
#0 src/addons/XFES/Elasticsearch/Api.php(331): XFES\Elasticsearch\Api->request('get', 'nadda_forumdata...', '{
"sort": [...')
#1 src/addons/XFES/Elasticsearch/Api.php(234): XFES\Elasticsearch\Api->requestFromIndex('get', '_search', Array)
#2 src/addons/SV/SearchImprovements/XFES/Elasticsearch/Api.php(34): XFES\Elasticsearch\Api->search(Array)
#3 src/addons/XFES/Search/Source/Elasticsearch.php(748): SV\SearchImprovements\XFES\Elasticsearch\Api->search(Array)
#4 src/addons/XFES/Search/Source/Elasticsearch.php(227): XFES\Search\Source\Elasticsearch->executeSearch(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), Array, 100)
#5 src/addons/XFES/XF/Search/Search.php(36): XFES\Search\Source\Elasticsearch->moreLikeThis(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100)
#6 src/XF/Search/Search.php(212): XFES\XF\Search\Search->XFES\XF\Search\{closure}(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100)
#7 src/addons/XFES/XF/Search/Search.php(32): XF\Search\Search->executeSearch(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100, Object(Closure), false)
#8 src/addons/XFES/XF/Repository/Thread.php(87): XFES\XF\Search\Search->moreLikeThis(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100, false)
#9 src/addons/XFES/XF/Repository/Thread.php(52): XFES\XF\Repository\Thread->getSimilarThreadIds(Object(ThemeHouse\Notifier\XF\Entity\Thread), 100, false)
#10 src/addons/XFES/Widget/SimilarThreads.php(153): XFES\XF\Repository\Thread->rebuildSimilarThreadsCache(Object(ThemeHouse\Notifier\XF\Entity\Thread))
#11 src/addons/SV/ElasticSearchEssentials/XFES/Widget/SimilarThreads.php(45): XFES\Widget\SimilarThreads->getSimilarThreadsCache(Object(ThemeHouse\Notifier\XF\Entity\Thread))
#12 src/addons/XFES/Widget/SimilarThreads.php(59): SV\ElasticSearchEssentials\XFES\Widget\SimilarThreads->getSimilarThreadsCache(Object(ThemeHouse\Notifier\XF\Entity\Thread))
#13 src/addons/SV/ElasticSearchEssentials/XFES/Widget/SimilarThreads.php(30): XFES\Widget\SimilarThreads->render()
#14 internal_data/code_cache/widgets/_75_xfes_thread_view_below_quick_reply_similar_threads.php(5): SV\ElasticSearchEssentials\XFES\Widget\SimilarThreads->render()
#15 src/XF/Template/Templater.php(7405): XF\SubContainer\Widget->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Array)
#16 src/XF/SubContainer/Widget.php(168): XF\Template\Templater->renderWidgetClosure(Object(Closure), Array)
#17 src/XF/Template/Templater.php(1901): XF\SubContainer\Widget->getCompiledWidget(Array, Array)
#18 internal_data/code_cache/templates/l1/s6/public/thread_view.php(1175): XF\Template\Templater->widgetPosition('thread_view_bel...', Array)
#19 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#20 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#21 src/XF/Template/Templater.php(1617): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#22 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_view_typ...', Array, true, NULL)
#23 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_v...', Array)
#24 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#25 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\ViewT...', 'public:thread_v...', Array)
#26 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#27 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#28 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#29 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#30 src/XF.php(488): XF\App->run()
#31 index.php(20): XF::runApp('XF\\Pub\\App')
#32 {main}
-------------
Previous GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 20000 milliseconds with 0 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) - src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:185
#0 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 src/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#4 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 src/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 src/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 src/vendor/guzzlehttp/guzzle/src/Middleware.php(58): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 src/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 src/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 src/vendor/guzzlehttp/guzzle/src/Client.php(98): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 src/vendor/guzzlehttp/guzzle/src/Client.php(106): GuzzleHttp\Client->sendAsync(Object(GuzzleHttp\Psr7\Request), Array)
#13 src/addons/XFES/Elasticsearch/Api.php(374): GuzzleHttp\Client->send(Object(GuzzleHttp\Psr7\Request))
#14 src/addons/XFES/Elasticsearch/Api.php(331): XFES\Elasticsearch\Api->request('get', 'nadda_forumdata...', '{
"sort": [...')
#15 src/addons/XFES/Elasticsearch/Api.php(234): XFES\Elasticsearch\Api->requestFromIndex('get', '_search', Array)
#16 src/addons/SV/SearchImprovements/XFES/Elasticsearch/Api.php(34): XFES\Elasticsearch\Api->search(Array)
#17 src/addons/XFES/Search/Source/Elasticsearch.php(748): SV\SearchImprovements\XFES\Elasticsearch\Api->search(Array)
#18 src/addons/XFES/Search/Source/Elasticsearch.php(227): XFES\Search\Source\Elasticsearch->executeSearch(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), Array, 100)
#19 src/addons/XFES/XF/Search/Search.php(36): XFES\Search\Source\Elasticsearch->moreLikeThis(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100)
#20 src/XF/Search/Search.php(212): XFES\XF\Search\Search->XFES\XF\Search\{closure}(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100)
#21 src/addons/XFES/XF/Search/Search.php(32): XF\Search\Search->executeSearch(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100, Object(Closure), false)
#22 src/addons/XFES/XF/Repository/Thread.php(87): XFES\XF\Search\Search->moreLikeThis(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100, false)
#23 src/addons/XFES/XF/Repository/Thread.php(52): XFES\XF\Repository\Thread->getSimilarThreadIds(Object(ThemeHouse\Notifier\XF\Entity\Thread), 100, false)
#24 src/addons/XFES/Widget/SimilarThreads.php(153): XFES\XF\Repository\Thread->rebuildSimilarThreadsCache(Object(ThemeHouse\Notifier\XF\Entity\Thread))
#25 src/addons/SV/ElasticSearchEssentials/XFES/Widget/SimilarThreads.php(45): XFES\Widget\SimilarThreads->getSimilarThreadsCache(Object(ThemeHouse\Notifier\XF\Entity\Thread))
#26 src/addons/XFES/Widget/SimilarThreads.php(59): SV\ElasticSearchEssentials\XFES\Widget\SimilarThreads->getSimilarThreadsCache(Object(ThemeHouse\Notifier\XF\Entity\Thread))
#27 src/addons/SV/ElasticSearchEssentials/XFES/Widget/SimilarThreads.php(30): XFES\Widget\SimilarThreads->render()
#28 internal_data/code_cache/widgets/_75_xfes_thread_view_below_quick_reply_similar_threads.php(5): SV\ElasticSearchEssentials\XFES\Widget\SimilarThreads->render()
#29 src/XF/Template/Templater.php(7405): XF\SubContainer\Widget->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Array)
#30 src/XF/SubContainer/Widget.php(168): XF\Template\Templater->renderWidgetClosure(Object(Closure), Array)
#31 src/XF/Template/Templater.php(1901): XF\SubContainer\Widget->getCompiledWidget(Array, Array)
#32 internal_data/code_cache/templates/l1/s6/public/thread_view.php(1175): XF\Template\Templater->widgetPosition('thread_view_bel...', Array)
#33 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#34 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#35 src/XF/Template/Templater.php(1617): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#36 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_view_typ...', Array, true, NULL)
#37 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_v...', Array)
#38 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#39 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\ViewT...', 'public:thread_v...', Array)
#40 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#41 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#42 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#43 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#44 src/XF.php(488): XF\App->run()
#45 index.php(20): XF::runApp('XF\\Pub\\App')
#46 {main}
Request state
array(4) {
["url"] => string(15) "/threads/83578/"
["referrer"] => string(56) "/forums/health-care.41/post-thread"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
XF\PrintableException: Similar thread cache rebuild failure: The search could not be completed. Please try again later. src/XF.php:763
Generated by: Unknown account Mar 18, 2021 at 9:01 AM
Stack trace
#0 src/addons/XFES/Search/Source/Elasticsearch.php(759): XF::phrasedException('xfes_search_cou...')
#1 src/addons/XFES/Search/Source/Elasticsearch.php(227): XFES\Search\Source\Elasticsearch->executeSearch(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), Array, 100)
#2 src/addons/XFES/XF/Search/Search.php(36): XFES\Search\Source\Elasticsearch->moreLikeThis(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100)
#3 src/XF/Search/Search.php(212): XFES\XF\Search\Search->XFES\XF\Search\{closure}(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100)
#4 src/addons/XFES/XF/Search/Search.php(32): XF\Search\Search->executeSearch(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100, Object(Closure), false)
#5 src/addons/XFES/XF/Repository/Thread.php(87): XFES\XF\Search\Search->moreLikeThis(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100, false)
#6 src/addons/XFES/XF/Repository/Thread.php(52): XFES\XF\Repository\Thread->getSimilarThreadIds(Object(ThemeHouse\Notifier\XF\Entity\Thread), 100, false)
#7 src/addons/XFES/Job/SimilarThreads.php(64): XFES\XF\Repository\Thread->rebuildSimilarThreadsCache(Object(ThemeHouse\Notifier\XF\Entity\Thread))
#8 src/XF/Job/AbstractRebuildJob.php(47): XFES\Job\SimilarThreads->rebuildById(2200)
#9 src/addons/XFES/Job/SimilarThreads.php(23): XF\Job\AbstractRebuildJob->run(7.70672)
#10 src/XF/Job/Manager.php(258): XFES\Job\SimilarThreads->run(7.70672)
#11 src/XF/Job/Manager.php(200): XF\Job\Manager->runJobInternal(Array, 7.70672)
#12 src/XF/Job/Manager.php(84): XF\Job\Manager->runJobEntry(Array, 7.70672)
#13 job.php(43): XF\Job\Manager->runQueue(false, 8)
#14 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(44) "/threads/60913/page-14"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Stack trace
#0 src/addons/XFES/Elasticsearch/Api.php(331): XFES\Elasticsearch\Api->request('get', 'xenforo/_search', false)
#1 src/addons/XFES/Elasticsearch/Api.php(234): XFES\Elasticsearch\Api->requestFromIndex('get', '_search', Array)
#2 src/addons/XFES/Search/Source/Elasticsearch.php(748): XFES\Elasticsearch\Api->search(Array)
#3 src/addons/XFES/Search/Source/Elasticsearch.php(227): XFES\Search\Source\Elasticsearch->executeSearch(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), Array, 100)
#4 src/addons/XFES/XF/Search/Search.php(36): XFES\Search\Source\Elasticsearch->moreLikeThis(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100)
#5 src/XF/Search/Search.php(212): XFES\XF\Search\Search->XFES\XF\Search\{closure}(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100)
#6 src/addons/XFES/XF/Search/Search.php(32): XF\Search\Search->executeSearch(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100, Object(Closure), false)
#7 src/addons/XFES/XF/Repository/Thread.php(87): XFES\XF\Search\Search->moreLikeThis(Object(SV\ElasticSearchEssentials\XFES\Search\Query\MoreLikeThisQuery), 100, false)
#8 src/addons/XFES/XF/Repository/Thread.php(52): XFES\XF\Repository\Thread->getSimilarThreadIds(Object(SV\ElasticSearchEssentials\XF\Entity\Thread), 100, false)
#9 src/addons/XFES/Job/SimilarThreads.php(64): XFES\XF\Repository\Thread->rebuildSimilarThreadsCache(Object(SV\ElasticSearchEssentials\XF\Entity\Thread))
#10 src/XF/Job/AbstractRebuildJob.php(47): XFES\Job\SimilarThreads->rebuildById(422161)
#11 src/addons/XFES/Job/SimilarThreads.php(23): XF\Job\AbstractRebuildJob->run(8)
#12 src/XF/Job/Manager.php(258): XFES\Job\SimilarThreads->run(8)
#13 src/XF/Job/Manager.php(200): XF\Job\Manager->runJobInternal(Array, 8)
#14 src/XF/Job/Manager.php(84): XF\Job\Manager->runJobEntry(Array, 8)
#15 job.php(43): XF\Job\Manager->runQueue(false, 8)
#16 {main}
thread_type Not matching, Expected:array ( 'type' => 'keyword', ), array ( 'type' => 'text', 'fields' => array ( 'keyword' => array ( 'type' => 'keyword', 'ignore_above' => 256, ), ), )
We use essential cookies to make this site work, and optional cookies to enhance your experience.