sphinx 遇见的问题

1>>index 'xxx': search error: failed to open /data/html/index/xxx.sph: No such file or directory

搜索出来的东西老不正确,明明mysql中有,但是我却搜索不出来。
我建立的是两级索引

经过发现,原来是我把
两级索引的path路径写成了一个名字

1>>WARNING: index 'mublog_profile': preload: failed to open /usr/local/sphinx/data/mublog_profile.sph: No such file or directory; NOT SERVING
WARNING: index 'mublog_notice': preload: failed to open /usr/local/sphinx/data/mublog_notice.sph: No such file or directory; NOT SERVING

在第一次启动sphinx的时候。需要先建立索引
先运行: ./indexer -c sphinx.conf.title --all
在启动sphinx:  ./searchd -c sphinx.conf.title

猜你喜欢

转载自aircoder.iteye.com/blog/1848278