lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <>
Subject Re: Search for similar terms
Date Mon, 02 Jun 2003 14:22:04 GMT
> TermEnum enum = reader.terms(new Term(field, start));

That cuts down the time from 5s to 5ms, thanks a lot!

> I haven't found a way to stop the enumeration once I am sure that
> the input term can not match any more :)

Being able to throw a StopItException from termCompare would seem like a
useful addition to the API; on the other hand I have not been able to
see any significant difference beween 'alpha' and 'xeno'.

Eric Jain

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message