使用 sphinxsearch 2.2,我在以下位置定义了这个架构sphinx.conf
:
index topic
{
type = rt
path = /var/lib/sphinxsearch/data/topic
rt_field = title
rt_field = description
rt_attr_timestamp = created_at
}
当我保存并重新安装 searchd (searchd --stop
然后searchd
再次唱歌)时,该架构未反映在 spixQL 中:
MySQL [(none)]> desc topic;
+-------------+-----------+
| Field | Type |
+-------------+-----------+
| id | bigint |
| title | field |
| title | field |
| description | field |
| likes | uint |
| created_at | timestamp |
+-------------+-----------+
6 rows in set (0.000 sec)
如您所见,由于某种原因,title
上面有两个字段。这不会改变我对sphinx.conf
.
为了更新架构,我还尝试删除所有 /var/lib/sphinxsearch/data/topic* 文件,但没有任何区别。
这里有什么问题?我该如何解决?