Doug,

> > 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.

Thanks. I suppose it would be correct to assume that the sorting order
is java.lang.String.compareTo() ?

Regards,
Ype
-- 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to