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

Support Bucket Filters in Facet Functions

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

            • Assignee:
              Unassigned
              Reporter:
              yuanyun.cn jefferyyuan

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment