Category Archives: sphinx
← Continue Reading
[导读]如果sphinx在运行中,要indexer时,需要加上--rotate参数,这样索引完就直接生效了。
原因是sphinx的searchd在启动时会创建一个 .spl 锁文件,并在关闭时会删除它。在indexer创建索引时如果发现有 .spl文件,则不会创建新索引,因为这时已经标志sphinx正在运行中,除非使用 –rotate。
rotate运行机制
->indexer完成索引
-&...
← Continue Reading
coreseek/sphinx 实时索引
1. 建表 用来做主索引和增量索引的区分点
create table ph_counter(
counter_id int auto increment primary key,
max_doc_id int
)ENGINES=MYISAM DEFAULT CHARSET=utf8;
2.vim csvf.conf
#添加
sql_query_pre ...
← Continue Reading
关于BuildExcerpts失效问题
1.字符高亮不显示,注意关注参数:single_passage{Whether to highlight exact query phrase matches only instead of individual keywords. Boolean, default is FALSE}
2.关于标题正常,内容不显问题。参考下列内容...