On Mar 21, 2007, at 4:22 PM, Yonik Seeley wrote:
For each TermQuery, I do tq.setBoost( score ); where score is a float
my app generates. This usually works except when the numbers get real
small, like "2.712607e-4" that I just encountered. Solr seems to
destroy the e bit, turning the boost into 2.712607 and added a
default field search for "e 4".
I assume you are using the QueryParser? I don't believe the lucene
query parser supports scientific notation for boosts.
Yes, that was the case. It was the toString of Query putting in the E
and then the QueryParser not handling it. Not a Solr issue, sorry for
the clutter!
-Brian