sphinx 安装使用

参考 :http://www.cnblogs.com/ainiaa/archive/2010/12/21/1912459.html


D:\sphinx\bin>indexer.exe --all

Sphinx 2.0.6-release (r3473)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)


using config file './sphinx.conf'...
indexing index 'test1'...
collected 4 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 4 docs, 193 bytes
total 0.117 sec, 1637 bytes/sec, 33.92 docs/sec
indexing index 'test1stemmed'...
collected 4 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 4 docs, 193 bytes
total 0.025 sec, 7436 bytes/sec, 154.12 docs/sec
skipping non-plain index 'dist1'...
skipping non-plain index 'rt'...
total 4 reads, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
total 18 writes, 0.001 sec, 0.1 kb/call avg, 0.0 msec/call avg


D:\sphinx\bin>search.exe test
Sphinx 2.0.6-release (r3473)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)


using config file './sphinx.conf'...
index 'test1': query 'test ': returned 3 matches of 3 total in 0.000 sec


displaying matches:
1. document=1, weight=2421, group_id=1, date_added=Sun Jan 06 10:40:50 2013
        id=1
        group_id=1
        group_id2=5
        date_added=2013-01-06 10:40:50
        title=test one
        content=this is my test document number one. also checking search within
 phrases.
2. document=2, weight=2421, group_id=1, date_added=Sun Jan 06 10:40:50 2013
        id=2
        group_id=1
        group_id2=6
        date_added=2013-01-06 10:40:50
        title=test two
        content=this is my test document number two
3. document=4, weight=1442, group_id=2, date_added=Sun Jan 06 10:40:50 2013
        id=4
        group_id=2
        group_id2=8
        date_added=2013-01-06 10:40:50
        title=doc number four
        content=this is to test groups


words:
1. 'test': 3 documents, 5 hits


index 'test1stemmed': query 'test ': returned 3 matches of 3 total in 0.000 sec

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值