【发布时间】:2012-12-21 23:24:26
【问题描述】:
我用过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
但是什么都没发生。 支持中文搜索怎么办?
【问题讨论】:
-
请在帖子中使用正确的英语。
标签: joomla joomla-extensions joomla-k2