: Is there some way when faceted search is executed, we can retrieve the : possible min/max values of numeric doc-values field with supplied custom : ranges in (LongRangeFacetCounts) or some other way to do it ? : : As i believe this can give application hint, and next search request can be : much smarter, e.g custom ranges can be more specific ?
You can use the StatsComponent to find out the min/max values of a field (constrained by your query, or *:* if you want the min/max across the entire index) and then you can use those values in your subsequent queries... https://cwiki.apache.org/confluence/display/solr/The+Stats+Component It's not currently possible to get the "actual" min/max *within* each range bucket of a facet.range (which is what you seem to be asking for althought i may be missunderstanding) but it's something being actively investigated on as part of a larger objective to beter integrate stats & facets... https://issues.apache.org/jira/browse/SOLR-6352 https://issues.apache.org/jira/browse/SOLR-6348 -Hoss http://www.lucidworks.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org