2

我用的是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

但什么也没发生。支持中文搜索的东西怎么办?

4

1 回答 1

2

@ray,因为您的问题应该需要对 K2 进行更改(如果问题确实存在)我建议您查看开发者论坛http://getk2.org/community/index

于 2013-06-02T04:29:30.370 回答