coreseek安装使用指南

1、下载coreseek-3.2.14-win32 (51CTO)
2、CMD命令行进入解压的文件夹执行 set PATH=%CD%\bin;%PATH%
3、常用命令
##【测试配置文件是否可用】
#bin\indexer -c etc\csft.conf

##【测试索引全部数据】
#bin\indexer -c etc\csft.conf --all

##【测试索引指定索引数据】
#bin\indexer -c etc\csft.conf xml

##【测试命令行搜索】
# bin\search -c etc\csft.conf

##【测试命令行中文搜索】
# bin\search -c etc\csft.conf -a 网络搜索
#内置了iconv命令,可以使用如下中文搜索指令进行测试:
echo 网络搜索 | iconv -f gbk -t utf-8 | search -c etc\csft.conf --stdin | iconv -f utf-8 -t gbk
#


##【测试搜索服务端】port=9312
# bin\searchd -c etc\csft.conf
##如要停止搜索服务,请使用ctrl+C停止

测试包内容说明:
csft 通用测试:(3.2.x与4.x均支持)
test.cmd:
    测试对象:xml数据源,中文分词与搜索
    对应配置:etc/csft.conf
    测试数据:var/test/test.xml
    PHP程序:api/test_coreseek.php
    在线说明:http://www.coreseek.cn/products-install/install_on_windows/

test_cjk.cmd:
    测试对象:xml数据源,单字切分与搜索
    对应配置:etc/csft_cjk.conf
    测试数据:var/test/test.xml
    PHP程序:api/test_coreseek.php
    在线说明:http://www.coreseek.cn/products-install/ngram_len_cjk/

test_mysql.cmd:
    测试对象:mysql数据源,中文分词与搜索
    对应配置:etc/csft_mysql.conf
    测试数据:var/test/documents.sql
    PHP程序:api/test_coreseek.php
    测试说明:请先将测试数据导入数据库,并设置好配置文件中的MySQL用户密码数据库
    在线说明:http://www.coreseek.cn/products-install/mysql/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章