lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Potehin" <an...@orbita1.ru>
Subject Problem with TermDocs
Date Mon, 20 Feb 2006 11:54:16 GMT
Ir is IndexReader.

termIdent is Term

 

int freq = ir.docFreq(termIdent);

if (freq > 1) {

            TermDocs termDocs = ir.termDocs(termIdent);

            int[] docsArr = new int[freq];

int[] freqArr = new int[freq];

int number = termDocs.read(docsArr,freqArr);

System.out.println(number);

}

 

 

Why number always is not equal freq (in the most of the cases number is
equal 1)?

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message