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

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

First of all, please raise issues like this on the user's list first, and if 
there's any consensus that this is a code issue, _then_ raise a JIRA.

In this case, the recommendation has always been that field names follow Java 
naming conventions, see: https://wiki.apache.org/solr/SchemaXml the "Fields" 
section.

> Function queries don't support hash "#" in field name
> -----------------------------------------------------
>
>                 Key: SOLR-7643
>                 URL: https://issues.apache.org/jira/browse/SOLR-7643
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrJ
>    Affects Versions: 4.7.2
>            Reporter: DAG Support
>            Priority: Minor
>
> I have some index documents with both table_name and #table_name fields.
> If I use a function query with table_name:
> SolrQuery query = new SolrQuery();
> query.add("fl" , "exists(table_name)");
> it works, returning results like this: <doc><bool 
> name="exists(table_name)">true</bool></doc> 
> However, if I use #table_name:
>  
> query.add("fl" , "exists(#table_name)");
> it returns empty documents like this: <doc></doc>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to