Re: recip function error

2014-10-24 Thread eShard
Thank you very much for your replies. I discovered there was a typo in the function I was given. One of the parenthesis was in the wrong spot It should be this: boost=recip(ms(NOW/HOUR,general_modifydate),3.16e-11,0.08,0.05) And now it works with edismax! Strange... Thanks again, -- View this

Re: recip function error

2014-10-23 Thread Yonik Seeley
On Thu, Oct 23, 2014 at 7:47 PM, Michael Sokolov wrote: > 3.16e-11.0 looks fishy to me Indeed... looks like it should be "3.16e-11" Standard scientific notation shouldn't have decimal points in the exponent. Not sure if that causes Java problems or not though... -Yonik http://heliosearch.org -

Re: recip function error

2014-10-23 Thread Michael Sokolov
3.16e-11.0 looks fishy to me On 10/23/14 5: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 posi

Re: recip function error

2014-10-23 Thread Chris Hostetter
: 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 inpu

Re: recip function error

2014-10-23 Thread eShard
Thanks we're planning on going to 4.10.1 in a few months. I discovered that recip only works with dismax; I use edismax by default. does anyone know why I can't use recip with edismax?? I hope this is fixed in 4.10.1... Thanks, -- View this message in context: http://lucene.472066.n3.nabble.

Re: recip function error

2014-10-23 Thread Shawn Heisey
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(