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

Json API: cannot get metric for field with spaces.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 5.2
    • 5.2
    • query parsers
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: