狮身人面像搜索问题

时间:2011-08-29 07:32:56

标签: php sphinx

我的sphinx配置如下

source city {
        type            =       mysql
        sql_host        =       localhost
        sql_user        =       root
        sql_pass        =       password
        sql_db          =       database

        sql_query                               = \
                SELECT id,name,cuisine, location,tag  \
                FROM city_search

        sql_query_info                  = SELECT *  FROM city_search WHERE id=$id
}

index city {
        source          =       city
        path            =       /usr/local/sphinx/var/data/city
        charset_type    =       utf-8
        morphology      =       stem_en
        min_stemming_len =      4
        min_word_len    =       3
        min_prefix_len  =       3
        enable_star     =       1
}

我有一个城市餐馆列表的索引,对于这个索引,我在Mysql中创建了一个视图,包含用户可以搜索的所有信息

餐厅名称 烹饪 位置等

现在,当我搜索“印度”之类的查询时,理想情况下应该返回所有包含“美食”字样的餐馆,但

例如,这个记录应该是有效的文件不会被退回这是我认为的一个栏目,菜肴场所有餐厅以空间分隔的所有美食

id name location cuisine 311 Verandah Baner印度意大利语中文

不确定可能是什么问题

0 个答案:

没有答案
相关问题