【问题标题】:Why Joomla! K2 does not support Chinese search?为什么选择 Joomla! K2不支持中文搜索?
【发布时间】: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


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-03-18
    • 2012-12-24
    • 1970-01-01
    • 2014-02-02
    • 2017-09-25
    • 1970-01-01
    • 1970-01-01
    • 2020-11-10
    相关资源
    最近更新 更多