Windows下的安装测试
CoreSeek快速安装: 安装前,建议查看:Win版本README.txt;4.0/4.1版可参考3.2版本安装,步骤相同;如遇到问题,请看详细安装。 1. 下载coreseek win32版本:coreseek 3.2.14:点击下载、coreseek 4.0.1:点击下载、coreseek 4.1:点击下载 2. 建立c:\usr\local目录,点击压缩包,将其中的coreseek-3.2.14-win32选中拖拽到c:\usr\local目录中 3. 进入c:\usr\local\coreseek-3.2.14-win32,点击其中test开头的文件,进行搜索测试 如不使用自带的test测试,必须从桌面-开始-运行-输入CMD,打开命令行窗口,然后执行: CD c:\usr\local\coreseek-3.2.14-win32 SET PATH=%CD%\bin;%PATH% 再使用5中的常用指令测试 4. 目录中的README.txt文件中,有所有配置和test测试文件的说明 5. 常用指令:(提示:a. 进入bin目录再执行指令,是错误的做法; b. 中文搜索或出现乱码或者无结果,需查看后面详细说明) 测试配置是否可用:bin\indexer -c etc\csft.conf 测试索引全部数据:bin\indexer -c etc\csft.conf --all 测试索引指定数据:bin\indexer -c etc\csft.conf 索引名称(如:xml、mysql) 测试 命令行 搜索: bin\search -c etc\csft.conf 测试 中文 搜索:bin\search -c etc\csft.conf -a 网络搜索 测试 搜索服 务端: bin\searchd -c etc\csft.conf
CoreSeek详细安装: ##coreseek-win32安装测试说明文档【2011年1月12日更新,支持命令行中文搜索测试】 ## ####如果您觉得以下步骤太麻烦,请即刻进入火线技术支持:专业技术支持、商务合作联系方式 ## ##以下文档,对32位(x86)、64位(amd64、x64)均可适用 ## ##一、安装: ## 1. Microsoft Visual C++ 运行环境,一般系统自带;如果运行提示“应用程序错误”,则需要安装 ##coreseek-3.x版本, Microsoft Visual C++ 2005 运行环境 (x86)(32位系统和64位系统均安装该版本): ##注意:是运行环境,不是开发环境,才2.6M大小 ##从微软官方网站下载Microsoft Visual C++ 2005 Redistributable Package (x86),然后安装; ## ##coreseek-4.x版本, Microsoft Visual C++ 2008 运行环境 (x86)(32位系统和64位系统均安装该版本): ##注意:是运行环境,不是开发环境,才1.7M大小 ##从微软官方网站下载Microsoft Visual C++ 2008 Redistributable Package (x86),然后安装; ## ## 2. 安装 Coreseek-win32(必须):【2011年1月12日更新,支持命令行中文搜索测试】 ##从Coreseek官方网站下载 http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14-win32.zip ##或者下载 http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.0.1-win32.zip ##或者下载 http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-win32.zip #解压coreseek-3.2.14-win32.zip到coreseek-3.2.14-win32目录 #或者解压coreseek-4.0.1-win32.zip到coreseek-4.0.1-win32目录 #或者解压coreseek-4.1-win32.zip到coreseek-4.1-win32目录 #请点击仔细查看README.txt ##二、数据源支持: ##win32版本默认支持xml、mysql等数据源 ##三、coreseek中文全文检索测试 ##一般测试,可直接执行test.cmd【测试平台说明】测试,或者: ##打开win32命令行(快捷键:Win键+R),参考test.cmd进行测试 ##进入coreseek-3.2.14-win32或者coreseek-4.0.1-win32/coreseek-4.1-win32所在的目录 #cd coreseek-3.2.14-win32 或者 cd coreseek-4.0.1-win32 或者 cd coreseek-4.1-win32 #set PATH=%CD%\bin;%PATH% ##设置path,是的bin目录中的cat.exe、iconv.exe可以被调用 ##【测试配置文件是否可用】 #bin\indexer -c etc\csft.conf ##以下为正常情况下的提示信息: Coreseek Fulltext 3.2 [ Sphinx 0.9.9-release (r2117)] Copyright (c) 2007-2010, Beijing Choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc\csft.conf'... total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg ## ##csft-4.0/4.1版显示:ERROR: nothing to do. ## ##【测试索引全部数据】 #bin\indexer -c etc\csft.conf --all ##以下为正常索引全部数据时的提示信息:(csft-4.0/4.1版类似) Coreseek Fulltext 3.2 [ Sphinx 0.9.9-release (r2117)] Copyright (c) 2007-2010, Beijing Choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc\csft.conf'... indexing index 'xml'... collected 3 docs, 0.0 MB sorted 0.0 Mhits, 100.0% done total 3 docs, 7585 bytes total 0.075 sec, 101043 bytes/sec, 39.96 docs/sec total 2 reads, 0.000 sec, 5.6 kb/call avg, 0.0 msec/call avg total 7 writes, 0.000 sec, 3.9 kb/call avg, 0.0 msec/call avg ##【测试索引指定索引数据】 #bin\indexer -c etc\csft.conf xml ##以下为正常索引指定数据时的提示信息:(csft-4.0/4.1版类似) Coreseek Fulltext 3.2 [ Sphinx 0.9.9-release (r2117)] Copyright (c) 2007-2010, Beijing Choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc\csft.conf'... indexing index 'xml'... collected 3 docs, 0.0 MB sorted 0.0 Mhits, 100.0% done total 3 docs, 7585 bytes total 0.069 sec, 109614 bytes/sec, 43.35 docs/sec total 2 reads, 0.000 sec, 5.6 kb/call avg, 0.0 msec/call avg total 7 writes, 0.000 sec, 3.9 kb/call avg, 0.0 msec/call avg ##【测试命令行搜索】 # bin\search -c etc\csft.conf ##以下为正常测试搜索时的提示信息:(csft-4.0/4.1版类似) Coreseek Fulltext 3.2 [ Sphinx 0.9.9-release (r2117)] Copyright (c) 2007-2010, Beijing Choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc\csft.conf'... index 'xml': query '': returned 3 matches of 3 total in 0.093 sec displaying matches: 1. document=1, weight=1, published=Thu Apr 1 22:20:07 2010, author_id=1 2. document=2, weight=1, published=Thu Apr 1 23:25:48 2010, author_id=1 3. document=3, weight=1, published=Thu Apr 1 12:01:00 2010, author_id=2 words: ##【测试命令行中文搜索】 ##因为Win32命令行不支持UTF-8输入,故以下中文搜索指令无法直接测试: # bin\search -c etc\csft.conf -a 网络搜索 # ##coreseek-win32最新版本(2010年11月14日更新)内置了iconv命令,可以使用如下中文搜索指令进行测试: echo 网络搜索 | iconv -f gbk -t utf-8 | search -c etc\csft.conf --stdin | iconv -f utf-8 -t gbk # ## 如果是Cygwin环境,且设置了locale正确显示UTF-8,还可以使用如下方法: #./bin/search -c etc/csft.conf -a `echo 网络搜索 | iconv -f gbk -t utf-8` # ##以下为正常测试搜索关键词时的提示信息:(csft-4.0/4.1版类似) Coreseek Fulltext 3.2 [ Sphinx 0.9.9-release (r2117)] Copyright (c) 2007-2010, Beijing Choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc\csft.conf'... index 'xml': query 'Twittter和Opera都提供了搜索服务 ': returned 3 matches of 3 total in 0.038 sec displaying matches: 1. document=3, weight=24, published=Thu Apr 1 12:01:00 2010, author_id=2 2. document=1, weight=4, published=Thu Apr 1 22:20:07 2010, author_id=1 3. document=2, weight=3, published=Thu Apr 1 23:25:48 2010, author_id=1 words: 1. 'twittter': 1 documents, 3 hits 2. '和': 3 documents, 15 hits 3. 'opera': 1 documents, 25 hits 4. '都': 2 documents, 4 hits 5. '提供': 0 documents, 0 hits 6. '了': 3 documents, 18 hits 7. '搜索': 2 documents, 5 hits 8. '服务': 1 documents, 1 hits ##【测试搜索服务端】 # bin\searchd -c etc\csft.conf ##以下为正常开启搜索服务时的提示信息:(csft-4.0/4.1版类似) Coreseek Fulltext 3.2 [ Sphinx 0.9.9-release (r2117)] Copyright (c) 2007-2010, Beijing Choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc\csft.conf'... listening on all interfaces, port=9312 ##如要停止搜索服务,请使用ctrl+C停止 ##如要继续测试搜索功能,请不要停止,否则其他程序将无法连接到搜索服务端 如果要作为正式的搜索服务运行,请仔细查看searchd详细说明的“安装成一个服务”。安装为服务后,可以在线更新索引,并对外提供搜索服务。但是不建议使用Windows作为正式的搜索服务器。 ##然后,请参考api目录中的相关文件,使用PHP、Python、Ruby、Java来测试搜索服务;也可以前往搜索服务建立三步曲,查看第三步使用PHP测试。 ##四、继续 ##通过以上步骤,coreseek已经安装测试完成,可以提供正常的xml数据源索引以及提供对应的搜索服务了 ##下一步工作,请查看手册,准备好mysql数据信息,以及进行mysql数据源的测试,并在您的应用中调用搜索服务;mysql数据源的配置可参考etc/csft_mysql.conf文件##如有问题,请前往:http://www.coreseek.cn/forum/ 提问,我们将在第一时间解答 ##如果您需要获得专业的技术支持,请即刻前往:http://www.coreseek.cn/contact/ 与我们取得联系,洽谈支持与合作事宜 ## ##祝您使用快乐!!!
附录: ##五、python数据源支持: ## 安装Python 2.6 Windows (x86)(必须,32位系统和64位系统均安装该版本): ##从ActiveState官方网站下载ActivePython 2.6 Windows (x86),然后安装; ##您也可从华军软件园下载ActivePython 2.6 Windows (x86),然后安装; ## ##python 数据源安装支持完成 ##如果您对python数据源有实际需求,请与我们取得联系http://www.coreseek.cn/contact/获取相关资料,也可以查看演示:Python万能数据源与Python数据源手册 ##python数据源演示(测试索引前,请先测试脚本自身是否可以正确操作读取数据):演示1、演示2(需预先安装配置好python2.6连接mssql的包pymssql)
测试说明: coreseek-3.x版本,需安装:Microsoft Visual C++ 2005 运行环境 (x86,2.6M) coreseek-4.x版本,需安装:Microsoft Visual C++ 2008 运行环境 (x86,1.7M) 测试包内容说明: 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/ test_python.cmd: 测试对象:python数据源,中文分词与搜索 对应配置:etc/csft_demo_python.conf 数据脚本:etc/pysource/csft_demo/__init__.py PHP程序:api/test_coreseek.php 测试说明:请先安装Python 2.6 Windows (x86) 在线说明:http://www.coreseek.cn/products-install/python/ 自行测试: 测试对象:python+mssql数据源,中文分词与搜索 对应配置:etc/csft_demo_python_pymssql.conf 数据脚本:etc/pysource/csft_demo_pymssql/__init__.py PHP程序:api/test_coreseek.php 测试说明:请先安装Python 2.6 Windows (x86)、pymssql(py2.6) 在线说明:http://www.coreseek.cn/products-install/python/ coreseek-4.0/4.1 新增测试: test_rtindex.cmd: 测试对象:RT实时索引,中文分词与搜索 对应配置:etc/csft_rtindex.conf PHP程序:api/test_coreseek_rtindex.php 在线说明:http://www.coreseek.cn/products-install/rt-indexes/ test_rtindex_cjk.cmd: 测试对象:RT实时索引,单字切分与搜索 对应配置:etc/csft_rtindex_cjk.conf PHP程序:api/test_coreseek_rtindex.php 在线说明:http://www.coreseek.cn/products-install/rt-indexes/
上一篇: Mac OS X下的安装
下一篇: MySQL(支持SphinxSE)