lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelly Taylor <wired...@hotmail.com>
Subject How does one sort facet queries?
Date Fri, 19 Feb 2010 01:15:58 GMT

All sorting of facets works great at the field level (count/index)...all good
there...but how is sorting accomplished with range queries? The solrj
response doesn't seem to maintain the order the queries are sent in, and the
order is not in index or count order. What's the trick?

http://localhost:8983/solr/select?q=someterm
  &rows=0
  &facet=true
  &facet.limit=-1
  &facet.query=price:[* TO 100]
  &facet.query=price:[100 TO 200]
  &facet.query=price:[200 TO 300]
  &facet.query=price:[300 TO 400]
  &facet.query=price:[400 TO 500]
  &facet.query=price:[500 TO 600]
  &facet.query=price:[600 TO 700]
  &facet.query=price:[700 TO *]  
  &facet.mincount=1
  &collapse.field=dedupe_hash
  &collapse.threshold=1
  &collapse.type=normal
  &collapse.facet=before

-- 
View this message in context: http://old.nabble.com/How-does-one-sort-facet-queries--tp27648587p27648587.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message