Hey Julien,
What's your actual query look like? The original, the parsed, etc. (I
think a bunch of the variations get output when using debugQuery=true)
There is a DoubleFieldSource in the trunk as of SOLR-324, so that
probably explains why you are seeing the FloatFieldSource (as I
recall, the DoubleField actually used the FloatFieldSource).
However, I am not sure why it is not working otherwise. Perhaps you
could try trunk and see what happens?
-Grant
On Jun 20, 2008, at 7:44 AM, Julien Nioche wrote:
Hi guys,
I am usgin SOLR 2.2. I am trying to boost documents such as this one
<doc>
<float name="score">9.600311</float>
<float name="boost">1.8212872</float>
<str name="cache">content</str>
<str name="digest">d340da6d1483f028110b0ffc2402c417</str>
*<double name="domain_score">14730</double>*
<str name="id">http://www.bebo.com/Video.jsp</str>
<str name="segment">20080529185637</str>
<str name="site">www.bebo.com</str>
<str name="title">Video</str>
<long name="tstamp">20080529195525711</long>
<str name="url">http://www.bebo.com/Video.jsp</str>
<double name="url_score">6</double>
</doc>
using the *domain_score *field
the field type double is defined in my schema as :* <fieldType
name="double"
class="solr.DoubleField" omitNorms="true"/>*
I added *bf=domain_score* to my query but can't see any change in
the way
the documents are sorted
the debug info shows that
0.0 = (MATCH)
FunctionQuery
(org
.apache.solr.search.function.FloatFieldSource:float(domain_score)),
product of:
0.0 = float(domain_score)=0.0
1.0 = boost
0.1766438 = queryNorm
Does the field have to be of type float to be used in a Function
Query? I
tried using *bf=ord(domain_score*) but to no avail.
Any clues?
Thanks
Julien
--
DigitalPebble Ltd
http://www.digitalpebble.com
--------------------------
Grant Ingersoll
http://www.lucidimagination.com
Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ