You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by govind nitk <go...@gmail.com> on 2017/06/26 08:38:19 UTC
strdist function gives error
Hi Team,
solr 6.5.1 on ubuntu 14.04:
strdist function gives error for comparison as below:
strdist(myfield,"google cloud","jw")
I am getting below error:
"error": {"metadata": ["error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.search.SyntaxError"],"msg":
"org.apache.solr.search.SyntaxError:
Missing end quote for string at pos 21 str='if(gt(strdist(myfield,\"google'"
,"code": 400}
I tried putting encoding(%20, +) for space, but no use. - like
strdist(myfield,"google%20cloud","jw")
Any way to do this?
Regards,
Govind