lucene-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/SOLR-3742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13490209#comment-13490209
] 

Ted Strauss commented on SOLR-3742:
-----------------------------------

Group faceting is implemented in SimpleFacets.java in the method - public int getGroupedFacetQueryCount(Query
facetQuery)

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: https://issues.apache.org/jira/browse/SOLR-3742
>             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(SimpleFacets.java:358)
...
> 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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message