我有幾個表,字面上只保存整數,沒有「單詞」,由於某些原因,獅身人面像無法將這些數據保存在它的庫中。只是返回這些索引的「0字節」錯誤。獅身人面像非全文搜索,整數只搜索
是否有可能做到這一點?如果是這樣,怎麼樣?下面是一個來自我的Sphinx.conf的例子,其中一個失敗了。
source track
{
type = mysql
sql_host = host
sql_user = user
sql_pass = pass
sql_db = db
sql_port = port
sql_query = SELECT id, user, time FROM track;
sql_attr_uint = user
sql_attr_uint = time
sql_query_info = SELECT * FROM track WHERE id=$id
}
index track
{
source = track
path = /var/lib/sphinx/track
docinfo = extern
charset_type = utf-8
min_prefix_len = 1
enable_star = 1
}