我使用K2,但我发现搜索中文没有通过K2搜索模型的结果。 Joomla 3.0.X,K2 v2.6.1
file: /plugins/search/k2/k2.php
WHERE (";
if ($pluginParams->get('search_tags') && count($itemIDs))
{
JArrayHelper::toInteger($itemIDs);
$query .= " i.id IN (".implode(',', $itemIDs).") OR ";
}
$query .= "MATCH(i.title, i.introtext, i.`fulltext`,i.extra_fields_search,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.metadesc,i.metakey) AGAINST ({$text} IN BOOLEAN MODE)
)
替换
WHERE i.title LIKE $text
OR i.introtext LIKE $text
OR i.`fulltext` LIKE $text
OR i.extra_fields_search LIKE $text
OR i.image_caption LIKE $text
OR i.image_credits LIKE $text
OR i.video_caption LIKE $text
OR i.video_credits LIKE $text
OR i.metadesc LIKE $text
OR i.metakey LIKE $text
但一切都没发生。 如何做一些支持中文搜索的内容?