Displaying 2 results from an estimated 2 matches for "each_hit".
Did you mean:
cache_hit
2006 Jan 22
3
Balancing relevancy and recentness
I was wondering if there was a good way to either balance the relevancy
score with recentness of matching documents- or include the recentness
in the score somehow?
Thanks,
Ben
--
Posted via http://www.ruby-forum.com/.
2006 Jan 14
1
Adjusting scores
One other mod to Ferret I''ve found useful is to add
the following line at the top of the each_hit() block
in Search::IndexSearcher.search:
score = yield( doc, score ) if block_given?
This allows a block attached to a search call to adjust
document scores before documents are sorted, based on
some (possibly dynamic) numerical factors associated
with the document, e.g. the number and impo...