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

SubFacets allBuckets not woring with measures on tokenized fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:
      None

      Description

      Subfacets are not working when you ask for allBuckets on a tokenized fields with measures
      Here is the request:
      {
      hs: {
      field: hs,
      type: terms,
      allBuckets:true,
      sort: "mostrar_bill_price desc",
      facet:

      { mostrar_bill_price: "sum(mostrar_bill_price)" }

      }
      }

      Here is the response:
      {
      "responseHeader": {
      "status": 500,
      "QTime": 92,
      "params": {
      "indent": "true",
      "q": ":",
      "json.facet": "{ hs: { field: hs, type: terms, allBuckets:true, sort: \"mostrar_bill_price desc\", facet:

      { mostrar_bill_price: \"sum(mostrar_bill_price)\" }

      } }",
      "wt": "json",
      "rows": "0"
      }
      },
      "response": {
      "numFound": 35422188,
      "start": 0,
      "docs": []
      },
      "error": {
      "trace": "java.lang.ArrayIndexOutOfBoundsException\n",
      "code": 500
      }
      }

      hs fields is defined as:
      <field name="hs" type="text_ws" indexed="true" stored="false" required="false" multiValued="false" />

      mostrar_bill_price is defined as:
      <field name="mostrar_bill_price" type="tdouble" indexed="true" stored="false" required="false" multiValued="false" />

      A part from text_ws, it also happens with text_classic (these are the only ones I've tested it.

        Attachments

          Activity

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              anzorena.fing@gmail.com Pablo Anzorena
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: