sphinx 分布式索引报错:no enabled local indexes to search

来源:互联网 发布:谢谢爷爷 知乎 编辑:程序博客网 时间:2024/05/22 08:03

在配置完分布式索引查询后query 警告:no enabled local indexes to search(没有启用本地索引搜索)
查看分布式索引部署9313配置文件里

index question2{    source              = question2    path                = /cnk_data/cnk_search/var2/data/question2    docinfo             = extern    charset_type        = zh_cn.utf-8    mlock               = 1    morphology          = none    html_strip          = 0    ngram_len           = 0    charset_dictpath    = /usr/local/mmseg3/etc/}index cnkang_question{    type        = distributed    agent       = /cnk_data/cnk_search/var1/run/searchd_9312.sock:question1    agent      = /cnk_data/cnk_search/var2/run/searchd_9313.sock:question2    agent       = /cnk_data/cnk_search/var3/run/searchd_9314.sock:question3    agent       = /cnk_data/cnk_search/var4/run/searchd_9315.sock:question4    agent_connect_timeout = 1000    agent_query_timeout   = 300}

发现原因调用question2索引时也使用了代理agent,这里改成local 重启searchd即可

index cnkang_question{    type        = distributed    agent       = /cnk_data/cnk_search/var1/run/searchd_9312.sock:question1    local       = question2    agent       = /cnk_data/cnk_search/var3/run/searchd_9314.sock:question3    agent       = /cnk_data/cnk_search/var4/run/searchd_9315.sock:question4    agent_connect_timeout = 1000    agent_query_timeout   = 300}
0 0
原创粉丝点击