Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9602

Support Bucket Filters in Facet Functions

    XMLWordPrintableJSON

Details

    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:

      { sum : "sum(timeSpent)" // it would be great if we support minValue, maxValue to do filter here }


      }
      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuanyun.cn jefferyyuan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: