On 10/23/2014 3:09 PM, eShard wrote:
> Good evening,
> I'm using solr 4.0 Final.
> 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))'
>
> I applied this patch https://issues.apache.org/jira/browse/SOLR-3522 
> Rebuilt and redeployed AND I get the exact same error.
> I only copied over the new jars and war file. Non of the other libraries
> seemed to have changed.
> the patch is in solr core so I figured I was safe.
>
> Does anyone know how to fix this?

The Solr version you are running is more than two years old.  There have
been MANY new releases and MANY problems fixed since July 2012.

I have been using the recip function in a similar manner without any
problem on Solr versions starting at 4.2.1, up through 4.9.1, but I
|have never used 4.0.||

boost=min(recip(abs(ms(NOW/HOUR,pd)),1.92901e-10,1.5,1.5),0.85)|

Upgrading is strongly advised.  The current Solr version is 4.10.1,
released less than a month ago.

Thanks,
Shawn

Reply via email to