Jump to content
IPS Invision Community
Sign in to follow this  
jan1ck

Проблема с поиском

Recommended Posts

jan1ck

Здравствуйте! Версия ipb 4.2.2, php 7.1.8, от стиля проблема не зависит. 

Вообщем, если вписать в поиск на английском, например "test", то все в порядке - поиск работает. Если же вписать на русском "тест" то вылетает вот такое:

К сожалению, возникла проблема

Что-то пошло не так. Пожалуйста, попробуйте еще раз.

Код ошибки: EX-1

SELECT main.*, ((MATCH(index_title) AGAINST ('тест')*5)+(MATCH(index_content,index_title) AGAINST ('тест')))/POWER(( ( UNIX_TIMESTAMP( NOW() ) - ( CASE WHEN index_date_updated <= UNIX_TIMESTAMP( NOW() ) THEN index_date_updated ELSE 0 END )) / 3600 ) + 2,1.5) AS calcscore FROM `core_search_index` AS `main` WHERE ( ( index_class IN('IPS\\core\\Statuses\\Status','IPS\\core\\Statuses\\Reply') ) OR index_class='IPS\forums\Topic\Post' OR ( index_class IN('IPS\\calendar\\Event','IPS\\calendar\\Event\\Comment','IPS\\calendar\\Event\\Review') ) ) AND MATCH(index_content,index_title) AGAINST ('тест') AND ( index_permissions = '*' OR ( FIND_IN_SET(4,index_permissions) OR FIND_IN_SET('m1',index_permissions) ) ) ORDER BY calcscore DESC LIMIT 0,25
IPS\Db\Exception: No result metadata - possible table crash (-1)
#0 /home/admin/web/dndz.eu/public_html/system/Db/Select.php(433): IPS\Db\_Select->runQuery()
#1 [internal function]: IPS\Db\_Select->rewind()
#2 /home/admin/web/dndz.eu/public_html/system/Content/Search/Mysql/Query.php(1211): iterator_to_array(Object(IPS\Db\Select))
#3 /home/admin/web/dndz.eu/public_html/applications/core/modules/front/search/search.php(608): IPS\Content\Search\Mysql\_Query->search('\xD1\x82\xD0\xB5\xD1\x81\xD1\x82', NULL, 17)
#4 /home/admin/web/dndz.eu/public_html/applications/core/modules/front/search/search.php(73): IPS\core\modules\front\search\_search->_results()
#5 /home/admin/web/dndz.eu/public_html/system/Dispatcher/Controller.php(96): IPS\core\modules\front\search\_search->manage()
#6 /home/admin/web/dndz.eu/public_html/system/Dispatcher/Dispatcher.php(146): IPS\Dispatcher\_Controller->execute()
#7 /home/admin/web/dndz.eu/public_html/index.php(12): IPS\_Dispatcher->run()
#8 {main}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...