Hi Shamik, What fieldType are you using for the field that you are doing the function queries on?
Regards, Edwin On Tue, 26 Mar 2019 at 06:40, Shamik Bandopadhyay <sham...@gmail.com> wrote: > Hi, > > I'm having trouble handling white space or special characters in > function queries. Here's a sample function: > > if(termfreq(ADSKFeature,'CUI (Command)'),log(CaseCount),sqrt(CaseCount)) > > I tried escaping the space with "\", but that didn't work either. Here's > the exception being thrown: > > org.apache.solr.search.SyntaxError: Expected identifier at pos 0 > str='(Command)'),log(CaseCount),sqrt(CaseCount))' > > This happen with other special characters like &, ?, etc. > > Does function queries have any limitations? Or am I doing something wrong? > > Any pointers will be highly appreciated. > > Thanks, > Shamik >