搜索引擎 sphinx 中能不能设置分组后返回的结果数?

kenshin54 · February 11, 2012 · 8530 hits

最近在使用 thinking-sphinx 做搜索,想实现按某属性分组后返回最佳的前几个结果。 比如 Product 和 Seller,按 Seller 分组后,返回每个 Seller 前 N 个 Product,而不只是 1 个。 类似于 solr 的 Field Collapsing,solr 中可以用 group.limit 来设置返回多少个分组后的结果。 查了 sphinx 的文档http://sphinxsearch.com/docs/2.0.2/clustering.htmlThe上面说** final search result set then contains one best match per group. **不知道是不是 sphinx 到现在还没有这个功能,或者各位有没有其他的办法模拟出这种搜索需求?

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.