lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Way Cool <way1.wayc...@gmail.com>
Subject Re: How to avoid double counting for facet query
Date Tue, 14 Jun 2011 23:34:20 GMT
I already checked out facet range query. By the way, I did put the
facet.range.include as below:
<str name="f.price.facet.range.include">lower</str>

Couple things I don't like though are:
1. It returns the following without end values (I have to re-calculate the
end values) :
<lst name="counts">
<int name="100.0">20</int>
<int name="150.0">3</int>
</lst>
<float name="gap">50.0</float>
<float name="start">0.0</float>
<float name="end">600.0</float>
<int name="before">0</int>

2. I can't specify custom ranges of values, for example, 1,2,3,4,5,...10,
15, 20, 30,40,50,60,80,90,100,200, ..., 600, 800, 900, 1000, 2000, ... etc.

Thanks.

On Tue, Jun 14, 2011 at 3:50 PM, Chris Hostetter
<hossman_lucene@fucit.org>wrote:

>
> : You can use exclusive range queries which are denoted by curly brackets.
>
> that will solve the problem of making the fq exclude a bound, but
> for the range facet counts you'll want to pay attention to look at
> facet.range.include...
>
> http://wiki.apache.org/solr/SimpleFacetParameters#facet.range.include
>
>
> -Hoss
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message