首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 狮身人面像的检索工具搜索searchd

狮身人面像的检索工具搜索searchd

资 源 简 介

a sphinx retrival tool to search from searchd ``` usage: valid params:[--host=][--port=]--index= [--query=][--limit=][--offset=][--filter=] --host= tell me the sphinx server ip,default is localhost --port= tell me the sphinx server port,defalult is 9312 --index= the index name to query, must be setted --query= the sphinx query language ,we use extend2 match mode --filter= the sphinx filters you set ,just for int values now,the pattern is: key1=value1&key2=value2 --offset= where to start,default value is 0 --limit= how many to return,cooperates with offset, default value is 10 for example:./hellosphinx --host=10.10.1.1 --port=9312 --index=productindexmain_5 --query="租房" --filter="cateID=43&cityID=188" --limit=10 --offset=0 解释: 因为官方提供的search程序,只能检索磁盘上的索引,而不是连接searchd程序,给一些调试带来不便,因此我写了这个程序 各选项含义: --host= 指定sphinx searchd 在的服务器地址 --port= host 对应服务器上sphinx searchd监听的端口 --index= 要检索的索引名称 --query= 要检索的sphinx查询语句 --filter= 设置sphinx的过滤

文 件 列 表

hellosphinx
README
Makefile
test.cpp
hello.cpp
VIP VIP
0.231594s