我正在尝试实现 Solr 方面搜索功能并通过 url 在服务器上测试我的查询。当我运行这个查询
http://localhost:8080/solr3/core0/select?indent=on&version=2.2&q=ipad&facet.field=brand&facet=on
我得到类似的东西
...<lst name="facet_counts"><lst name="facet_queries"/><lst name="facet_fields"><lst name="brand"><int name="Apple">37</int>
但是当我apple
用作方面查询时
http://localhost:8080/solr3/core0/select?indent=on&version=2.2&q=ipad&facet.field=brand&facet=on&fq=apple
我希望得到 37 个结果,但查询返回<result name="response" numFound="402" start="0">
我在这里错过了什么吗?
谢谢