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

Statistics/aggregated values per group in a grouped response

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      We need to get minimum and maximum values for a field, within a group in a grouped search-result.

      I'll flesh out our use-case a little to make our needs clearer:

      We have a number of documents, indexed with a price, date and a hotel. For each hotel, there are a number of documents, each representing a price/date combination. We then group our search result on hotel. We want to show the minimum and maximum price for each hotel.

      Other use-cases could be to calculate an average or a sum within a group.

      We plan to work on this in the coming weeks, and will be supplying patches.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mortenlj Morten Lied Johansen
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: