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.QueryParsing$StrParser.getFloat(QueryParsing.java:478)
at
org.apache.solr.search.QueryParsing.parseValSource(QueryParsing.java:526)
at
org.apache.solr.search.QueryParsing.parseFunction(QueryParsing.java:579)
at
org.apache.solr.util.SolrPluginUtils.parseFuncs(SolrPluginUtils.java:519)
at
org.apache.solr.request.DisMaxRequestHandler.handleRequest(DisMaxRequestHandler.java:321)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:595)
The function query field is -
<str name="bf">
recip(popularityRank, 1, 1000,
1000)^0.5recip(rord(creationDate),1,1000,1000)^
0.3
</str>
relevant field definitions from schema are:
<field name="popularityRank" type="float" indexed="true" stored="true"
/>
<field name="creationDate" type="date" indexed="true" stored="true"/>
I have checked that there is no document that has popularityRank as empty or
null.
(I ran an update query to set it to a large number when popularityRank was
empty or null)
If I change the function to rord(popularityRank) - the queries start working
Any clue what else I could do to debug this.
Thanks,
mekin
--
My company - http://ugenie.com
My Blog - http://mekin.livejournal.com/
My linkedin URL - http://www.linkedin.com/in/mekin