-RE: Term ordering for IndexReader.termDocs()
Doug Cutting 2002-01-25, 16:49
> From: Ype Kingma [mailto:[EMAIL PROTECTED]]
> I'm creating a filter from a set of terms that are read from
> a file, and I find that IndexReader.termDocs(Term(fieldName,
> does this quite well (around 0.1 secs elapsed time in jython code.)
> Would it be advantageous to sort the values from the file before
> using them in this way?
Yes, that would be faster. The term dictionary is sorted and this would
reduce both i/o and computation.