FabioPaz Posted June 27, 2023 Posted June 27, 2023 Hello, there. After enabling elasticsearch on IPB settings (and rebuilding the search index), the forum search always returns 0 results and any system that use the search, dont work either. Possible useful info: Lastest version of IPB installed Elasticsearch version 7.10.2 ES is running and I'm successfully using it via other software PHP ver 8.1 Nginx MariaDB Any help would be appreciated.
Marc Posted June 27, 2023 Posted June 27, 2023 Have you rebuilt the search index since you have done this? Have you also checked to see if you have anything showing in your system logs?
FabioPaz Posted June 29, 2023 Author Posted June 29, 2023 On 6/27/2023 at 12:24 PM, Marc Stridgen said: Have you rebuilt the search index since you have done this? Hi, @Marc Stridgen I changed to elasticsearch and rebuild the index. Didnt worked, so I did another rebuild. Didnt work, so I changed back to mysql (that worked). Quote Have you also checked to see if you have anything showing in your system logs? Now that you mention it, yes, a lot of entries like this: #0 /var/www/forum/system/Content/Search/Elastic/Query.php(1309): IPS\_Log::log() #1 /var/www/forum/system/Content/Controller.php(4099): IPS\Content\Search\Elastic\_Query->search() #2 /var/www/forum/applications/core/widgets/relatedContent.php(124): IPS\Content\_Controller->getSimilarContent() #3 /var/www/forum/system/Widget/Widget.php(833): IPS\core\widgets\_relatedContent->render() #4 /var/www/forum/system/Widget/Widget.php(888): IPS\_Widget->_render() #5 /var/www/forum/uploads/template_37_94a9d7649fb9cdbfc784d3516e61a717_global.php(18849): IPS\_Widget->__toString() #6 /var/www/forum/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->widgetContainer() #7 /var/www/forum/uploads/template_37_94a9d7649fb9cdbfc784d3516e61a717_global.php(7275): IPS\Theme\_SandboxedTemplate->__call() #8 /var/www/forum/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->globalTemplate() #9 /var/www/forum/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call() #10 /var/www/forum/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish() #11 /var/www/forum/system/Dispatcher/Front.php(558): IPS\Dispatcher\_Standard->finish() #12 /var/www/forum/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish() #13 /var/www/forum/index.php(13): IPS\_Dispatcher->run() #14 {main} With this: Array ( [query] => Array ( [function_score] => Array ( [query] => Array ( [bool] => Array ( [must] => Array ( [0] => Array ( [more_like_this] => Array ( [fields] => Array ( [0] => index_title ) [like] => Array ( [_index] => XXXXXXXXX [_id] => forums_topic_post-3313076 ) [min_term_freq] => 1 [max_query_terms] => 12 [min_word_length] => 3 ) ) ) [must_not] => Array ( [0] => Array ( [bool] => Array ( [filter] => Array ( [0] => Array ( [terms] => Array ( [index_class] => Array ( [0] => IPS\core\Statuses\Status [1] => IPS\core\Statuses\Reply ) ) ) ) ) ) ) [filter] => Array ( [0] => Array ( [bool] => Array ( [should] => Array ( [0] => Array ( [terms] => Array ( [index_class] => Array ( [0] => IPS\core\Statuses\Status [1] => IPS\core\Statuses\Reply ) ) ) [1] => Array ( [terms] => Array ( [index_class] => Array ( [0] => IPS\forums\Topic\Post ) ) ) ) ) ) [1] => Array ( [range] => Array ( [index_date_updated] => Array ( [gt] => 1624761971 ) ) ) [2] => Array ( [terms] => Array ( [index_permissions] => Array ( [0] => 2 [1] => * ) ) ) [3] => Array ( [term] => Array ( [index_hidden] => 0 ) ) ) ) ) [linear] => Array ( [index_date_updated] => Array ( [scale] => 120d [decay] => 0.5 [origin] => 1687833971 ) ) ) ) [sort] => Array ( ) [from] => 0 [size] => 5 [error] => Array ( [root_cause] => Array ( [0] => Array ( [type] => index_not_found_exception [reason] => no such index [XXXXXXXXX] [resource.type] => index_or_alias [resource.id] => XXXXXXXXX [index_uuid] => _na_ [index] => XXXXXXXXX ) ) [type] => index_not_found_exception [reason] => no such index [XXXXXXXXX] [resource.type] => index_or_alias [resource.id] => XXXXXXXXX [index_uuid] => _na_ [index] => XXXXXXXXX ) )
Marc Posted June 29, 2023 Posted June 29, 2023 I would suggest checking your elasticsearch settings and ensuring that those are correct in the first instance. It sounds very much like they may not be
Recommended Posts