centos-Linux下PHPSphinx配置问题~
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了centos-Linux下PHPSphinx配置问题~,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2054字,纯文字阅读大概需要3分钟。
内容图文
创建索引bin/indexer -c etc/sphinx.conf --all
,运行之后,出现如下异常错误:
using config file 'etc/sphinx.conf'...
indexing index 'test1'...
collected 4 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 4 docs, 193 bytes
total 0.006 sec, 28357 bytes/sec, 587.71 docs/sec
---
indexing index 'test1stemmed'...
ERROR: index 'test1stemmed': infixes and morphology are enabled, enable_star=0
---
skipping non-plain index 'dist1'...
skipping non-plain index 'rt'...
total 3 reads, 0.000 sec, 1.9 kb/call avg, 0.0 msec/call avg
total 9 writes, 0.000 sec, 1.4 kb/call avg, 0.0 msec/call avg
这是sphinx建立索引时出现读问题,我搜索内容也会出现问题,但是内容可以搜索出来~
搜索命令:bin/search -c etc/sphinx.conf test
错误如下:
words:
1. 'test': 3 documents, 5 hits
---
index 'test1stemmed': search error: failed to open /usr/local/sphinx/var/data/test1stemmed.sph: No such file or directory.
---
求高手指点~~
回复内容:
创建索引 bin/indexer -c etc/sphinx.conf --all
,运行之后,出现如下异常错误:
using config file 'etc/sphinx.conf'...
indexing index 'test1'...
collected 4 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 4 docs, 193 bytes
total 0.006 sec, 28357 bytes/sec, 587.71 docs/sec
---
indexing index 'test1stemmed'...
ERROR: index 'test1stemmed': infixes and morphology are enabled, enable_star=0
---
skipping non-plain index 'dist1'...
skipping non-plain index 'rt'...
total 3 reads, 0.000 sec, 1.9 kb/call avg, 0.0 msec/call avg
total 9 writes, 0.000 sec, 1.4 kb/call avg, 0.0 msec/call avg
这是sphinx建立索引时出现读问题,我搜索内容也会出现问题,但是内容可以搜索出来~
搜索命令:bin/search -c etc/sphinx.conf test
错误如下:
words:
1. 'test': 3 documents, 5 hits
---
index 'test1stemmed': search error: failed to open /usr/local/sphinx/var/data/test1stemmed.sph: No such file or directory.
---
求高手指点~~
在增量索引里面增加
enable_star = 1
比如我的
index deltc : taskquery
{
source = deltc
path = /var/lib/sphinxsearch/data/taskquerydelta
morphology = stem_en
enable_star = 1
}
配置里,索引的path路径用绝对路径,并且确保存在
内容总结
以上是互联网集市为您收集整理的centos-Linux下PHPSphinx配置问题~全部内容,希望文章能够帮你解决centos-Linux下PHPSphinx配置问题~所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。