lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Getting min/max of numeric doc-values facets
Date Thu, 09 Oct 2014 21:30:48 GMT

: 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 

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 & 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message