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/

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