2017-07-17 29 views
2

フィールド名に特殊文字をエスケープする方法はありますか?フィールド名にSolrエスケープ文字

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}} 
+0

英数字とアンダースコア以外の文字は使用しないでください –

答えて

1

のSolr/Luceneのは、そのエスケープ文字として\使用しますが、あなたは本当に、フィールド名に特別な意味を持つ文字を利用するのは避けるべきです。

関連する問題