lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Strauss (JIRA)" <>
Subject [jira] [Commented] (SOLR-3742) group.func and group.facet do not work together
Date Sun, 04 Nov 2012 15:58:12 GMT


Ted Strauss commented on SOLR-3742:

Group faceting is implemented in in the method - public int getGroupedFacetQueryCount(Query

To generate the facets for a field, FieldCache is maintained and iterated over. So for group
faceting, a field cache is maintained for group.field. Similarly a function cache needs to
be maintained to be iterated over to create facets and facet counts. Presently there is no
function cache implemented in Lucene
> group.func and group.facet do not work together
> -----------------------------------------------
>                 Key: SOLR-3742
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0-ALPHA, 4.0-BETA
>            Reporter: CP
> When doing a search like 
> http://localhost:8983/solr/select?group=true&group.func=product(fildname1,fieldname2)&group.facet=true&facet=true&facet.field=fieldname3
> an error is returned in response where facets are normally returned:
> java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.solr.request.SimpleFacets.getGroupedCounts(
> The function used can be any function, not product only. There is no such error if group.facet
is omitted or group.field is used instead of group.func. It seems that group.field parameter
is expected to be defined when calculating grouped facets.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

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

View raw message