eric1688 / sphinx

Sphinx for Chinese
GNU General Public License v2.0
133 stars 52 forks source link

rt索引不能使用中文 #3

Open 6api opened 6 years ago

6api commented 6 years ago

plain索引正常,rt索引中文不行 rt索引,不管 chinese_dictionary 是否打开,都无法搜索中文,结果为空,英文可以

index rt
{
    # chinese_dictionary    = /usr/local/sphinx/etc/xdict
    min_word_len    = 1
    ngram_len       = 1
    ngram_chars     = U+3000..U+2FA1F

    type            = rt
    path            = /usr/local/sphinx/var/data/rt
    rt_mem_limit    = 512M

    rt_field            = name
    rt_attr_uint        = cid
}
eric1688 commented 6 years ago

charset_type = utf-8加上试试