在我的项目中,我需要通过solr统计方面的统计两个字段。可以在stats字段中添加两个参数,同时统计它们吗?
发布于 2013-09-12 19:11:41
根据StatsComponent,您可以多次传递stats.field以在单个请求中接收它们,例如stats.field=price&stats.field=popularity
e.g. http://localhost:8983/solr/select?q=*:*&stats=true&stats.field=price&stats.field=popularity&rows=0&indent=true您还可以传递多个facet字段,例如stats.facet=inStock&stats.facet=popularity
https://stackoverflow.com/questions/18762475
复制相似问题