0

合并两个索引,现在我想知道文档的总数,我该怎么办?

/usr/local/sphinx/bin/indexer --config /path/to/sphinx.conf --rotate --merge apps apps_delta
Sphinx 2.0.8-id64-release (r3831)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/path/to/sphinx.conf'...
merging index 'apps_delta' into index 'apps'...
read 50.5 of 50.5 MB, 100.0% done
merged 85.2 Kwords
merged in 1.146 sec
total 6326 reads, 0.198 sec, 25.3 kb/call avg, 0.0 msec/call avg
total 332 writes, 0.336 sec, 253.4 kb/call avg, 1.0 msec/call avg
rotating indices: successfully sent SIGHUP to searchd (pid=1862).
4

1 回答 1

0

利用indextool --dumpheader

或者只是运行一个匹配所有文档的查询并检查total_found

或者,如果您升级 sphinx 版本,可以使用SHOW INDEX STATUS http://sphinxsearch.com/docs/current.html#sphinxql-show-index-status

于 2013-07-25T12:03:34.813 回答