You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Ype Kingma <yk...@xs4all.nl> on 2002/01/25 16:02:11 UTC

Term ordering for IndexReader.termDocs()

Hello,

I'm creating a filter from a set of terms that are read from
a file, and I find that IndexReader.termDocs(Term(fieldName, valueFromFile))
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? This could help to reduce the nr. of disk seeks,
but I have no idea about the way the segments are organized on disk.

I did not yet profile this, because I have only tried it with less then
100 terms on a relatively small index. I wonder whether performance
it still as good at say 20000 terms.

Thanks in advance,
Ype Kingma

-- 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>