lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: About TermQuery
Date Mon, 20 Oct 2008 13:11:38 GMT
You should be able to get the clauses from the BooleanQuery:

And, from there, you can do instanceof to determine the query type,  
eventually getting to a TermQuery, where you can do:

Every Query has a boost, thus, you can call Query.getBoost().


On Oct 20, 2008, at 5:40 AM, Carlos Rodríguez Fernández wrote:

> How can I get the boost value of the subqueries "TermQuery" from a
> BooleanQuery?
> In the Similarity ecuation
> I don't know how I can get the t.getBoost() value.
> Could you help me?
> I need it because I need to recalculate the scores of the documents  
> which
> were got from differents crawls. MultiReader is not the solution for  
> me :).
> Thanks!
> Carlos

Grant Ingersoll
Lucene Boot Camp Training Nov. 3-4, 2008, ApacheCon US New Orleans.

Lucene Helpful Hints:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message