Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Lucene, mail # user - Term ordering for IndexReader.termDocs()


Copy link to this message
-
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,
> 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?

Yes, that would be faster.  The term dictionary is sorted and this would
reduce both i/o and computation.

Doug

--