部分索引在狮身人面像
问题描述:
我已经实现了狮身人面像搜索单词,它工作正常。目前我使用部分索引在狮身人面像
$ sudo /usr/local/bin/searchd --config /usr/local/etc/sphinx.conf
创造存在于表中的所有记录索引但是,现在我想创建的部分索引的索引即应在表和旧索引新添加的记录也应该坚持才会发生。
答
在Sphinx中无法将新条目添加到普通索引中。您只能使用update attributes或使用所谓的delta indexing scheme。
另一种方法是使用real-time indexes,它可以使用SphinxQL查询进行更新。