lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: search timeout
Date Mon, 19 Mar 2007 01:24:05 GMT

: > imeediately? ... in the totally generic case, this isn't a safe

: This was implemented as an easy way to control the maximum search time
: for typical queries. I'm open for suggestions how to improve it. One

The only thing i can think of that would truely timeout *any* query is a
seperate Timer for each search.

: thing that sticks like a sore thumb is the use of exceptions to break
: the loop - IMHO the collect() method should simply return a boolean or
: int code that tells other parts of Lucene to stop collecting hits.

HitCollector is an abstract class, it would be pretty easy to add another
version of collect that doesn't return void and add Impl's for each that
call the other one by default (the way Analyzer.tokenStream use to work)




-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message