Solr
  1. Solr
  2. SOLR-7417

Aggregation Function unique() returns 0 when an int or date field is passed as argument

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      uniqueValues:'unique(myIntField)'
      uniqueValues:'unique(myDateField)'

      Result:

      "facets":

      { "count": someNumber, "uniqueValues":0}

      }

      1. SOLR-7417.patch
        7 kB
        Yonik Seeley

        Activity

        Hide
        Yonik Seeley added a comment -

        OK, Here's a patch implementing unique() for numeric fields.

        Show
        Yonik Seeley added a comment - OK, Here's a patch implementing unique() for numeric fields.
        Hide
        ASF subversion and git services added a comment -

        Commit 1675427 from Yonik Seeley in branch 'dev/trunk'
        [ https://svn.apache.org/r1675427 ]

        SOLR-7417: implement unique() for numeric fields

        Show
        ASF subversion and git services added a comment - Commit 1675427 from Yonik Seeley in branch 'dev/trunk' [ https://svn.apache.org/r1675427 ] SOLR-7417 : implement unique() for numeric fields
        Hide
        ASF subversion and git services added a comment -

        Commit 1675428 from Yonik Seeley in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1675428 ]

        SOLR-7417: implement unique() for numeric fields

        Show
        ASF subversion and git services added a comment - Commit 1675428 from Yonik Seeley in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1675428 ] SOLR-7417 : implement unique() for numeric fields

          People

          • Assignee:
            Yonik Seeley
            Reporter:
            LevanDev
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development