I have my own collector, but implemented this functionality by running
the search in a thread pool and terminating the FutureTask running the
job if it took longer than some configurable amount of time. That
seemed to do the trick for me. (In my case, the IndexReader is
explicitly opened readonly, so I'm not too worried about it).

--dho

2011/5/22 Simon Willnauer <simon.willna...@googlemail.com>:
> you can impl. you own collector and notify the collector to stop if you need 
> to.
> simon
>
> On Sun, May 22, 2011 at 12:06 PM, liat oren <oren.l...@gmail.com> wrote:
>> Hi Everyone,
>>
>> Is there a way to stop a multi search in the middle?
>>
>> Thanks a lot,
>> Liat
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

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

Reply via email to