Were you setting the boosts at index or search time? From an old e-mail from Chris H.
"index time field boosts are a way to express things like "this documents title is worth twice as much as the title of most documents" query time boosts are a way to express "I care about matches on this clause of my query twice as much as i do about matches to other clauses of my query". Erick On 4/19/07, HG1212 <[EMAIL PROTECTED]> wrote:
Hi there, I am new to Lucene and would appreciate any help on this. Thank you in advance. I want the order of the search results based on the keywords mentioned in the meta information of the document. For example, if I have two very similar documents first.htm and second.htm, first.htm has keywords ("security") mentioned in its meta and the second.htm does not mention those keywords in its meta information, but both documents contain "security" in its content, then I would want to see the first.htm at the top of the search results lists. I tried to boost these keywords (added new fields to the document and setting the boost for these fields) before adding to the document, but when I do a search, the results are not as expected. Any ideas how to accomplish this. Thanks HG -- View this message in context: http://www.nabble.com/Document-Boost-tf3609748.html#a10086883 Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]