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

Add support for partitioned unique agg to JSON facets

    XMLWordPrintableJSON

Details

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

    Description

      There are scenarios where documents are partitioned across shards based on the same field that the unique agg is applied to with JSON facets. In this scenario exact unique counts can be calculated by simply sending the bucket level unique counts to the aggregator where they can be summed. Suggested syntax is to add a boolean flag to the unique aggregation function: unique(partitioned_field, true).

      The true value turns on the "partitioned" unique logic. The default is false.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jbernste Joel Bernstein
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: