[ https://issues.apache.org/jira/browse/SOLR-7643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14575548#comment-14575548 ]
Yonik Seeley commented on SOLR-7643: ------------------------------------ I haven't tried it in this specific scenario, but there is also a field() function to reference a problematic field name: example: exists(field('#table_name')) > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org