lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
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 
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message