lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: recip function error
Date Thu, 23 Oct 2014 23:22:10 GMT

: I tried using this function
: boost=recip(ms(NOW/HOUR,startdatez,3.16e-11.0,0.08,0.05))
: but it fails with this error:
: org.apache.lucene.queryparser.classic.ParseException: Expected ')' at
: position 29 in 'recip(ms(NOW/HOUR,startdatez,3.16e-11.0,0.08,0.05))'

look very carefully at your input, and at the error message.

you are only passing *1* argument to the recip() function -- the output of 
the ms() funciton.

you are passing *5* arguments to the ms() function -- it supports a max of 

which is why at the 29th character of your input, after the second 
argument to your ms() function, it's complaining that it's expecting a ")" 
character -- not more arguments.


View raw message