【发布时间】:2011-12-14 10:29:49
【问题描述】:
我正在尝试实现 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">
我错过了什么吗?
谢谢
【问题讨论】: