Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3742

group.func and group.facet do not work together

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0-ALPHA, 4.0-BETA, 4.0, 4.0.1
    • None
    • search
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dev4 CP
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: