鉴于此字段定义
<field name="mtype" type="string" indexed="true" stored="false"/>
和相应的类型
<fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
我需要获取按mtype分组的计数。这是我期望工作的查询:
`/solr/select?q=deleted:False&wt=json&indent=true&fl=id,name&group=true&group.field=mtype`
但是我得到了一个未分组的结果列表:
{"responseHeader":{"status":0,"QTime":2,"params":{"fl":"id,name","q":"deleted:false","wt":"json"}},"response":{"numFound":2,"start":0,"docs":[{"name":"hello1","id":"80e9756d-8dd3-4cd0-b7c4-edebb9561f89"},{"name":"hello2","id":"80e9756d-8dd3-4cd0-b7c4-edebb9561f899"}]}}
根据这里的例子https://cwiki.apache.org/confluence/display/solr/Result+Grouping它应该有用......任何关于错误的想法?
由于