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

Solr needs hits= added to the log when using grouping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-ALPHA
    • None

    Description

      We monitor the Solr logs to try to review queries that have hits=0. This enables us to improve relevancy since they are easy to find and review.

      When using group=true, hits= does not show up:

      2011-01-27 01:10:16,117 INFO  core.SolrCore  - [collection1] webapp= path=/select params={group=true&group.field=gender&group.field=id&q=*:*} status=0 QTime=15
      

      The code in QueryComponent.java needs to add the matches() after calling grouping.execute() and add up the total.

      It does return hits= in the log for mainResult, but not for standard grouping.

      This should be easy to add since matches are defined...

      Attachments

        1. SOLR.2337.patch
          2 kB
          Bill Bell

        Activity

          People

            Unassigned Unassigned
            billnbell Bill Bell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: