Java statsComponent中的stats字段
在我的项目中,我需要solr stats方面的两个统计字段。我可以在stats字段中添加两个参数并同时统计它们吗?根据,您可以多次传递stats.field以在一次请求中接收所有参数,例如Java statsComponent中的stats字段,java,solr,Java,Solr,在我的项目中,我需要solr stats方面的两个统计字段。我可以在stats字段中添加两个参数并同时统计它们吗?根据,您可以多次传递stats.field以在一次请求中接收所有参数,例如stats.field=price&stats.field=popularity e.g. http://localhost:8983/solr/select?q=*:*&stats=true&stats.field=price&stats.field=popularity&ro
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
您还可以传递多个方面字段,例如stats.facet=inStock&stats.facet=popularity
e.g. http://localhost:8983/solr/select?q=*:*&stats=true&stats.field=price&stats.field=popularity&rows=0&indent=true