Re: recip function error
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 message in context: http://lucene.472066.n3.nabble.com/recip-function-error-tp4165600p4165713.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: recip function error
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 - native code faceting, facet functions, sub-facets, off-heap data
Re: recip function error
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 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? Thanks, -- View this message in context: http://lucene.472066.n3.nabble.com/recip-function-error-tp4165600.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: recip function error
: 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 2. 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. -Hoss http://www.lucidworks.com/
Re: recip function error
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.com/recip-function-error-tp4165600p4165613.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: recip function error
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
recip function error
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? Thanks, -- View this message in context: http://lucene.472066.n3.nabble.com/recip-function-error-tp4165600.html Sent from the Solr - User mailing list archive at Nabble.com.