jefferyyuan created SOLR-9602:
---------------------------------

             Summary: Support Bucket Filters in Facet Functions
                 Key: SOLR-9602
                 URL: https://issues.apache.org/jira/browse/SOLR-9602
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Facet Module, faceting
            Reporter: jefferyyuan
             Fix For: 5.5.4, 6.3, 6.x, 6.2.2


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:{ 
       sum : "sum(timeSpent)" 
       // it would be great if we support minValue, maxValue to do filter here 
     } 
   } 
 }




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to