TermDocs and "read"

2008-10-20 Thread Carlos Rodríguez Fernández
Hello: I have a problem with TermDocs#read operation. the following code has an incorrect result: . int termFreq=0; . TermDocs termDocs = indexReader.termDocs(new Term(((Field)field).name(),termCons)); int[] freqs = new int[]{0};

TermDocs and "read"

2008-10-20 Thread Carlos Rodríguez Fernández
Hello: I have a problem with TermDocs#read operation. the following code has an incorrect result: . int termFreq=0; . TermDocs termDocs = indexReader.termDocs(new Term(((Field)field).name(),termCons)); int[] freqs = new int[]{0};

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