Re: Documenting function queries [was Re: NumberFormat exception when trying to use recip function query]

2007-05-15 Thread Yonik Seeley
On 5/14/07, Mekin Maheshwari <[EMAIL PROTECTED]> wrote: > 2) eliminate the space inside the recip functions This solved it :) I think that issue is probably due to the dismax handler splitting up function queries on whitespace, and not the parsing of the individual function queries. We coul

Re: NumberFormat exception when trying to use recip function query

2007-05-14 Thread Mekin Maheshwari
Done. Please check - http://wiki.apache.org/solr/FunctionQuery and send me your comments (or improve the wiki ) Right now its more of a aggregation of all relevant information. I hope people will be able to add notes like what values to use, pitfalls to avoid, behaviour in special cases as well

Re: Documenting function queries [was Re: NumberFormat exception when trying to use recip function query]

2007-05-14 Thread Chris Hostetter
: I would like to document this along with a little detail about function : queries & may be if I get enough time, simple graphs that I created to help : people choose the right values for using in the function queries. that would be *awesome* : I do see a stub for - http://wiki.apache.org/solr

Documenting function queries [was Re: NumberFormat exception when trying to use recip function query]

2007-05-14 Thread Mekin Maheshwari
2) eliminate the space inside the recip functions This solved it :) I would like to document this along with a little detail about function queries & may be if I get enough time, simple graphs that I created to help people choose the right values for using in the function queries. I dont see

Re: NumberFormat exception when trying to use recip function query

2007-05-14 Thread Chris Hostetter
: The function query field is - : : recip(popularityRank, 1, 1000, : 1000)^0.5recip(rord(creationDate),1,1000,1000)^ : 0.3 : off the top of my head, i'd suggest you: 1) verify there is some whitespace between the boost of the popularity recip function and the date recip func

NumberFormat exception when trying to use recip function query

2007-05-14 Thread Mekin Maheshwari
Hi, I am getting the following exception when I try & run any query : java.lang.NumberFormatException: empty String at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994) at java.lang.Float.parseFloat(Float.java:394) at org.apache.solr.search.QueryPa