0

我的行业数量有限(大约 300 个行业),我想创建一个索引,该索引将给出这些关键字在索引文档中的频率。有没有办法在狮身人面像中做到这一点?

4

2 回答 2

0

There is a trick in Sphinx to get keyword statistics from the index. BuildKeywords API call ( http://sphinxsearch.com/docs/current.html#api-func-buildkeywords ) with hits flag set will return per keyword frequencies from given index.

Hope this helps

于 2012-06-06T14:55:27.700 回答
0

并不真地。

但是 indexer 的 --buildstops 函数会生成索引中最常见关键字的列表。

所以可以看看它的输出,并与你的行业列表进行比较。从理论上讲,我认为您的行业应该靠近列表的顶部,因此不必太长。

于 2012-06-06T10:42:51.363 回答