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

Erick Erickson resolved SOLR-7608.
----------------------------------
    Resolution: Invalid

Please raise questions like this on the user's list first before raising a 
JIRA, _then_ raise a JIRA if it's really a bug.

In this case, spaces in field names are not supported. They _may_ work in some 
situations, but field names should generally follow Java naming conventions.



> Json API: cannot get metric for field with spaces.
> --------------------------------------------------
>
>                 Key: SOLR-7608
>                 URL: https://issues.apache.org/jira/browse/SOLR-7608
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 5.2
>            Reporter: Iana Bondarska
>             Fix For: 5.2
>
>
> 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"}}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to