Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To answer your first question, you can get facet ranges by using the the generic facet query support. <a href="http://wiki.apache.org/solr/SimpleFacetParameters#head-1da3ab3995bc4abcdce8e0f04be7355ba19e9b2c" rel="nofollow noreferrer">Here</a>'s an example:</p> <pre><code>http://localhost:8983/solr/select?q=video&amp;rows=0&amp;facet=true&amp;facet.query=price:[*+TO+500]&amp;facet.query=price:[500+TO+*] </code></pre> <p>As for your second question (automatically suggesting facet ranges), that's not yet implemented. Some argue that this kind of querying would be best implemented on your application rather that letting Solr "guess" the best facet ranges.</p> <p>Here are some discussions on the topic:</p> <ul> <li>(Archived) <a href="https://web.archive.org/web/20100416235126/http://old.nabble.com/Re:-faceted-browsing-p3753053.html" rel="nofollow noreferrer">https://web.archive.org/web/20100416235126/http://old.nabble.com/Re:-faceted-browsing-p3753053.html</a></li> <li>(Archived) <a href="https://web.archive.org/web/20090430160232/http://www.nabble.com/Re:-Sorting-p6803791.html" rel="nofollow noreferrer">https://web.archive.org/web/20090430160232/http://www.nabble.com/Re:-Sorting-p6803791.html</a></li> <li>(Archived) <a href="https://web.archive.org/web/20090504020754/http://www.nabble.com/Dynamically-calculated-range-facet-td11314725.html" rel="nofollow noreferrer">https://web.archive.org/web/20090504020754/http://www.nabble.com/Dynamically-calculated-range-facet-td11314725.html</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload