In http://archives.devshed.com/forums/java-118/giving-different-boost-to-different-terms-in-a-same-document-2109816.html Erick quotes Hoss as saying
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". I've added this to the FAQ at http://wiki.apache.org/lucene-java/LuceneFAQ But I don't know why your code isn't doing what you want. Maybe you are boosting the wrong query, or need a different boost value, or need doc.setBoost() instead. -- Ian. On Wed, Mar 25, 2009 at 9:02 AM, m.harig <m.ha...@gmail.com> wrote: > > Hello all > Can anyone tell me what is the difference between query.setBoost() > and doc.setBoost()... More over if use query.setBoost(4.0f) am not able > to boost my results . which one makes my results better ???? please anyone > help me out of this....... > -- > View this message in context: > http://www.nabble.com/query---doc-boost-difference-tp22697500p22697500.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org