Re: About TermQuery

2008-10-20 Thread Grant Ingersoll
You should be able to get the clauses from the BooleanQuery: http://lucene.apache.org/java/2_4_0/api/core/org/apache/lucene/search/BooleanQuery.html#clauses() And, from there, you can do instanceof to determine the query type, eventually getting to a TermQuery, where you can do: http://lucene.

About TermQuery

2008-10-20 Thread Carlos Rodríguez Fernández
How can I get the boost value of the subqueries "TermQuery" from a BooleanQuery? In the Similarity ecuation http://lucene.apache.org/java/2_1_0/api/org/apache/lucene/search/Similarity.html I don't know how I can get the t.getBoost() value. Could you help me? I need it because I need to recalculat