lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martijn van Groningen (JIRA)" <>
Subject [jira] [Commented] (SOLR-2337) Solr needs hits= added to the log when using grouping
Date Sun, 12 Jun 2011 10:13:51 GMT


Martijn van Groningen commented on SOLR-2337:

In SOLR-2564 when group.totalCount=GROUPED is specified the total number of groups is added
inside a ngroups element. The number of documents that have matched is always placed inside
the matches element. 

The semantics changed a bit. Matches always represent the number of documents that have matched
the main query. The ngroups represent the number of groups per groupby command (field, func
and query).
So currently in SOLR-2564 the count in the log file always reflects the number of documents
that have matched the query.

> Solr needs hits= added to the log when using grouping 
> ------------------------------------------------------
>                 Key: SOLR-2337
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>    Affects Versions: 4.0
>            Reporter: Bill Bell
>             Fix For: 4.0
>         Attachments: SOLR.2337.patch
> 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:
> {code}
> 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
> {code}
> The code in 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...

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message