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

Json API: cannot get metric for field with spaces.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 5.2
    • Fix Version/s: 5.2
    • Component/s: query parsers
    • Labels:
      None

      Description

      There is numeric field with spaces in name in schema. When try to calculate any metric for it, I get an error about unrecognized field. Seems there is no way to escape spaces in field names. Same query works fine for field names without spaces.
      Examle json query:
      {"limit":0,"offset":0,"filter":[],"facet":{"facet":{"facet":

      {"actual_sales_sum":"sum(Actual Sales)"}

      ,"limit":0,"field":"City","type":"terms"}}}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yana2301 Iana Bondarska
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: