You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "m.harig" <m....@gmail.com> on 2009/03/25 10:02:42 UTC

query & doc boost difference

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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: query & doc boost difference

Posted by Ian Lea <ia...@gmail.com>.
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....@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: query & doc boost difference

Posted by Erick Erickson <er...@gmail.com>.
Could you provide more information about what you expect and what
you are seeing? As well as an example of what you've tried? Just
saying "it didn't work" doesn't give us much to go on....

Best
Erick

On Wed, Mar 25, 2009 at 5:02 AM, m.harig <m....@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>