codejunky codejunky wrote:

When I setBoost( ) on a document to 1. It seems to be written to the index with 
the new value and the field boost is set within the DocumentWriter.cs class. 
But when I call GetBoost( ) it always returns the default boost value of 1, no 
matter what value was set for the boost. However it does seem that the new 
document boost that was is being written to the specific segment, but I can't 
later retrieve that value. Is there a way to get the correct boost value that 
was set by the previous caller.

This is normal and expected. The boost value is stored inside a so called "field norm" value, which affects the scoring (according to the original boost), but the original boost is not preserved in the index, so when you later retrieve the document the boost is set to 1.

--
Best regards,
Andrzej Bialecki     <><
___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to