七、安装sphinx全文索引

1、

image.png

2、

image.png

3、

image.png

4、索引merge【文档 里说的不对】

C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\bin\indexer.exe --merge songs songs_zl  -c C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32/sphinx.conf --rotate

5、 (不知道有效不)

【修改默认配置文件的路径】
C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\bin\searchd --config C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32/sphinx.conf

6、在某一个步骤是要关闭这个服务的

image.png

===============================

7、可能用到的命令:

C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\bin\indexer.exe -c C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32/sphinx.conf --all

C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\bin\searchd.exe --install -c C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\sphinx.conf

syh.cn/searchPhinx/index.php

【.bat文件】
【创建增量索引】
C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\bin\indexer.exe -c C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32/sphinx.conf songs_zl

【大小索引merge】
C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\bin\indexer.exe --merge -c C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32/sphinx.conf songs songs_zl --rotate

【最后merge报错】
C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\bin\indexer.exe --all --config C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\etc\csft_mysql.conf

C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32\bin\indexer.exe --all --config C:\Users\yuzhan550\Desktop\ly\coreseek-3.2.14-win32/sphinx.conf

【FATAL: failed to lock E:/coreseek/var/data/mysql.sql:Invalid argument,will not index. Try --rotate 】
http://blog.sina.com.cn/s/blog_1398ea18d0102w8bv.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容