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 Dave Kor <s0...@sms.ed.ac.uk> on 2005/07/06 18:14:46 UTC

Boosting SpanQueries

I was just wondering, if I set the boost factor in SpanQueries such as the
SpanNearQuery or SpanOrQuery, does it get used?

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


Re: Boosting SpanQueries

Posted by Paul Libbrecht <pa...@activemath.org>.
Enclosing it in a boolean-query where its alone and which, itself, has 
a boosting would seem to work for me...

paul


Le 7 juil. 05, à 11:04, Vincent Le Maout a écrit :

> a way to implement something  as boosting allowing to enhance the 
> score of documents
> containing a particular word of a span query ?

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


Re: Boosting SpanQueries

Posted by Vincent Le Maout <vi...@lingway.com>.
Hi,

I met this problem a few months ago : trying to boost some words in 
SpanQuery seems
to have no effect, which was confirmed by looking at the source code (no 
reference to
boost in the scoring methods, at least as far as lucene 1.4.3 is 
concerned, correct me if
I am wrong). So my first question was, is that a bug or a feature ? if 
it is a feature is there
a way to implement something  as boosting allowing to enhance the score 
of documents
containing a particular word of a span query ?

Thanks.
Regards.

Vince

Dave Kor wrote:

>I was just wondering, if I set the boost factor in SpanQueries such as the
>SpanNearQuery or SpanOrQuery, does it get used?
>
>---------------------------------------------------------------------
>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