On Thu, Sep 23, 2010 at 4:30 PM, PeterKerk <vettepa...@hotmail.com> wrote:
> I have this in my query:
>  &q=*:*&facet.query=location_rating_total:[3 TO 100]
>
> And this document:
> <result name="response" numFound="6" start="0" maxScore="1.0">
> -
> <doc>
> <float name="score">1.0</float>
> <str name="id">1</str>
> <int name="location_rating_total">2</int>
> </doc>
>
> But still my total results equals 6 (total population) and not 0 as I would
> expect
>
> Why?

facet.query will give you the number of docs matching
location_rating_total:[3 TO 100], it does not restrict the results
list.  If you want that, you want a filter.

Try
&q=*:*&fq=location_rating_total:[3 TO 100]

-Yonik
http://lucenerevolution.org  Lucene/Solr Conference, Boston Oct 7-8

Reply via email to