Hi, guys, I fixed Solr search UI (solr/browse) to display the price range facet values via http://thetechietutorials.blogspot.com/2011/06/fix-price-facet-display-in-solr-search.htm l:
- Under 50<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B0.0+TO+50%5D> (1331) - [50.0 TO 100]<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B50.0+TO+100%5D> (133) - [100.0 TO 150]<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B100.0+TO+150%5D> (31) - [150.0 TO 200]<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B150.0+TO+200%5D> (7) - [200.0 TO 250]<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B200.0+TO+250%5D> (2) - [250.0 TO 300]<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B250.0+TO+300%5D> (5) - [300.0 TO 350]<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B300.0+TO+350%5D> (3) - [350.0 TO 400]<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B350.0+TO+400%5D> (6) - [400.0 TO 450]<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B400.0+TO+450%5D> (1) - 600.0+<http://localhost:9090/solr/browse?&q=Shakespeare&fq=price:%5B600.0+TO+*%5D>(1) However I am having double counting issue. Here is the URL to only return docs whose prices are in between 110.0 and 160.0 and price facets: http://localhost:8983/solr/select/?q=Shakespeare&version=2.2&rows=0&* fq=price:[110.0+TO+160]*&* facet.query=price:[110%20TO%20160]&facet.query=price:[160%20TO%20200]* &facet.field=price The response is as below: *<result name="response" numFound="23" start="0" maxScore="0.37042576"/> <lst name="facet_counts"> <lst name="facet_queries"> <int name="price:[110 TO 160]">23</int> <int name="price:[160 TO 200]">1</int> </lst> ... </result>* As you notice, the number of the results is 23, however an extra doc was found in the 160-200 range. Any way I can avoid double counting issue? Or does anyone have similar issues? Thanks, YH