[
https://issues.apache.org/jira/browse/SOLR-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13138324#comment-13138324
]
Ian Grainger commented on SOLR-2863:
------------------------------------
I can reproduce it with a very basic filter/facet query:
/solr/select?q=*:*&group.field=Unique_Name&group.truncate=true&group.ngroups=true&group=true&facet=true&facet.query=Monitor_id:[380000%20TO%20400000]
= facet-count: 103
vs.
/solr/select?q=*:*&group.field=Unique_Name&group.truncate=true&group.ngroups=true&group=true&facet=true&fq=Monitor_id:[380000%20TO%20400000]
= ngroups: 4372
It only happens if the values are different for each document in the group
(hence using an ID - which isn't the one being grouped on) - if they are all
the same, truncate works as expected.
> Solr 3.4 group.truncate does not work with facet queries
> --------------------------------------------------------
>
> Key: SOLR-2863
> URL: https://issues.apache.org/jira/browse/SOLR-2863
> Project: Solr
> Issue Type: Bug
> Components: search
> Affects Versions: 3.4
> Environment: Solr 3.4 on Windows Server 2008.
> Reporter: Ian Grainger
> Labels: facet, grouping, query, search, truncate
>
> When using Grouping with group.truncate=true, The following simple facet
> query:
> facet.query=Monitor_id:[380000 TO 400000]
> Doesn't give the same number as the nGroups result for the equivalent filter
> query:
> fq=Monitor_id:[380000 TO 400000]
> From the Wiki page: 'group.truncate: If true, facet counts are based on the
> most relevant document of each group matching the query.'
> If I turn off group.truncate then the counts are the same, as I'd expect -
> but unfortunately I'm only interested in the grouped results.
> Asked this question on the Solr-user mailing list and was told it is likely a
> bug by: Martijn Groningen.
> I'd be very interested in any workaround for this bug!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]