0
我在我的電子商務網站上有搜索表格。搜索引擎是Sphinxsearch。在sphinxsearch上搜索類似產品sku
我有SKU產品(04078,PS04078,DS04078,04078-1,04078-2,4078-3)。
我無法弄清楚如何配置獅身人面像,得到的結果,我需要的問題:
通過「04078」搜索給我只能用SKU 04078項,但並非所有6個項目。
如何獲得結果集中的所有6個項目?
我的conf:
source products
{
type = mysql
sql_host = #
sql_user = #
sql_pass = #
sql_db = #
sql_port = #
sql_query_pre = SET CHARACTER SET utf8
sql_query = \
SELECT id,price,name,sku,producer_name \
FROM products
#sql_attr_string = post_title
#sql_field_string = post_content
sql_query_info = SELECT * FROM products WHERE id=$id
}
index products
{
source = products
path = /var/data/products
docinfo = extern
mlock = 0
charset_type = utf-8
html_strip = 1
html_remove_elements = style, script
enable_star = 1
min_word_len = 1
min_infix_len = 3
}