This should be possible using a HitCollector with the IndexSearcher.search() method, and throwing an exception from the HitCollector when the time limit as expired.

        Erik


On Feb 7, 2006, at 5:55 PM, RONALD MANTAY wrote:

    Hi ,

I am working on a search application using lucene where I would like application to stop searching and return the hits colleted to date and an appropriate exception, when reaching either a threshold of

  a)   xx seconds of processing time.
  or
  b)   on finding xxx documents

  Any help is appreciated.






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

Reply via email to