Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
Description
Original link: http://lucene.472066.n3.nabble.com/Facet-Stats-MinCount-How-to-use-mincount-filter-when-use-facet-stats-td4299367.html
we need bucket filters in general (beyond mincount). - Yonik Seeley
We store some events data such as accountId, startTime, endTime, timeSpent and some other searchable fields.
We want to get all acountIds that spend more than xhours between startTime and endTime and some other criteria which are not important here.
We use solr facet function like below.
it's very powerful. The only missing part is that it doesn't minValue and maxValue filter.
http://localhost:8983/solr/events/select?q=*:*&json.facet={
categories:{
type : terms,
field : accountId,
numBuckets: true,
facet:
}
}