lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhavin Pandya" <bhav...@rediff.co.in>
Subject Re: How to set query time scoring
Date Mon, 27 Nov 2006 05:59:03 GMT
Hi sajid,

As you already boost data at indexing time...
You can boost query at search time...
eg. If you are firing boolean query and phrasequery...you might need to 
boost phrasequery....

PhraseQuery pq = new PhraseQuery();
pq.setBoost(2.0f);

Thanks.
Bhavin pandya

----- Original Message ----- 
From: "Sajid Khan" <assamhelp@yahoo.co.in>
To: <java-user@lucene.apache.org>
Sent: Monday, November 27, 2006 10:17 AM
Subject: How to set query time scoring


>
>     I have already set some score at the index time. And now i want to set
> some score at the query time. But i am not getting any idea of how to set
> the score at query time in lucene.
>     Has anybody an idea how to do this?
>
> Regards
> Sajid
> -- 
> View this message in context: 
> http://www.nabble.com/How-to-set-query-time-scoring-tf2709773.html#a7554766
> 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


Mime
View raw message