Reputation: 323
How can i escape special character in field name??
http://localhost:8983/solr/col/select?boost=if(exists(img-image_string),5,1)&debugQuery=on
gives me error error":{
"metadata":[
"error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.common.SolrException"],
"msg":"undefined field: \"img\"",
"code":400}}
Upvotes: 2
Views: 802
Reputation: 52792
Solr / Lucene uses \
as its escape character, but you should really try to avoid using characters with special meaning in field names.
Upvotes: 1