lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: How to avoid double counting for facet query
Date Tue, 14 Jun 2011 20:44:42 GMT
> That's good to know. From the ticket,
> looks like the fix will be in 4.0
> then?

It is already committed. You can use trunk:
svn checkout http://svn.apache.org/repos/asf/lucene/dev/trunk
 
> Currently I can see {} and [] worked, but not combined for
> Solr 3.1. I will
> try 3.2 soon. 

After re-thinking you can simulate the same thing by using a negative clause too : facet.query=price:[110
TO 160] -price:160 

I saw an facet by range example in solrconfig.xml. May be this will work for you?

http://wiki.apache.org/solr/SimpleFacetParameters#Facet_by_Range

    <int name="f.price.facet.range.start">0</int>
    <int name="f.price.facet.range.end">600</int>
    <int name="f.price.facet.range.gap">50</int>

Mime
View raw message