[ 
https://issues.apache.org/jira/browse/SOLR-3742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

CP updated SOLR-3742:
---------------------

    Description: 
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.

  was:
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) ...

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.

    
> 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: 
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]

Reply via email to