Well yes, Thank you so much.

I had lost that point of * in the main query.
With that I get what I expect.

This was awesome. Thanks so much

On Fri, Aug 31, 2012 at 9:49 AM, Chris Hostetter
<hossman_luc...@fucit.org>wrote:

>
> : But faceting using the following URL gives numFound = 0, and all 0's in
> the
>         ...
> :
> q=&fq=&start=0&rows=100&fl=u_height,id,score&wt=&debugQuery=on&explainOther=&facet=on&facet.range.other=all&
>         ...
> : Adding a value in q with qf set  like so
> :
> : *q=165.0&qf=u_height*
> :
> &fq=&start=0&rows=100&fl=u_height,id,score&wt=&debugQuery=on&explainOther=&facet=on&facet.range.other=all&facet.range.start=160.0&facet.range.end=172.0&facet.range.gap=2.0&facet.range=u_height&facet.range.include=all&defType=edismax
> :
> : gives 8 documents as expected in numFound and facet count of 8 only in
> the
> : range of 164.0, whereas I would like to *get the facet counts of all the
> : ranges.*
> : Anything missing here?
>
> I think you are missunderstanidng the point of faceting.
>
> when you ask for range faceting (or field faceting, or query faceting) the
> counts are based on the result set of your main query -- the constraint
> counts tell you how many of the *results* match each constraint.
>
> If your main query matches 0 documents, then the constraint counts will
> match no documents.  if your main query matches 8 documents, then the
> constraint counts will tell you, for each constraint, how many of those 8
> documents match each constraint.
>
> If you want to know how many documents, in your entire index, match each
> facet constraint, then you need to use "q=*:*" (with the lucene or edismax
> parsers) to tell solr that you want the entire index to be treated as your
> main query.
>
>
> -Hoss
>

Reply via email to