Do you have any suggestions for querying the indexed data with whitespaces and special charectors ?
Sent from Yahoo Mail on Android On Fri, Mar 29, 2019 at 16:59, Yonik Seeley<ysee...@gmail.com> wrote: On Thu, Mar 28, 2019 at 6:05 PM Jan Høydahl <jan....@cominvent.com> wrote: > Functions can never contain spaces. Spaces work fine in functions in general. The issue is the "bf" parameter as it uses whitespace to delimit multiple functions IIRC. -Yonik > Try to substitute the term with a variable, i.e. a request parameter, e.g. > > > bf=if(termfreq(ADSKFeature,$myTerm),log(CaseCount),sqrt(CaseCount))&myTerm=CUI+(Command) > > -- > Jan Høydahl, search solution architect > Cominvent AS - www.cominvent.com > > > 28. mar. 2019 kl. 18:51 skrev shamik <sham...@gmail.com>: > > > > Ahemad, I don't think its related to the field definition, rather looks > like > > an inherent bug. For the time being, I created a copyfield which uses a > > custom regex to remove whitespace and special characters and use it in > the > > function. I'll debug the source code and confirm if it's bug, will raise > a > > JIRA if needed. > > > > > > > > -- > > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html > >