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

select count(distinct fieldname) in SOLR

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.5
    • 4.7
    • None

    Description

      I have seen questions on the mailinglist about having the functionality for counting distinct on a field. We at Tailsweep as well want to that in for example our blogsearch.

      Example:
      "You had 1345 hits on 244 blogs"

      The 244 part is not possible in SOLR today (correct me if I am wrong). So I've written a component which does this. Attaching it.

      Attachments

        1. CountComponent.java
          13 kB
          Marcus Herou

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marcusherou Marcus Herou
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: