Sphinx:搜索:如何使用分隔符索引和查找单词" - "

时间:2017-06-02 11:18:23

标签: full-text-search sphinx

无法索引和查找诸如“N-7'”之类的字词。和狮身人面像等。 指令" charset_table",符号被添加 - 但不起作用。

还有什么可做的?

Sphinx 2.2.10 config

index site
{
        charset_table = 0..9, A..Z->a..z, _, -, a..z, \
        U+410..U+42F->U+430..U+44F, U+430..U+44F, U+401->U+451, U+451, U+2D

        type = rt
        path = /var/lib/sphinx/site
        ondisk_attrs=1
        morphology = lemmatize_ru_all, lemmatize_en_all, lemmatize_de_all, stem_enru
        prefix_fields = title
        infix_fields=
        min_prefix_len = 2
        expand_keywords = 1
        min_word_len = 3
        stopwords = /etc/sphinx/stopwords.txt
}    

弗拉基米尔。

0 个答案:

没有答案