I think the question is more related to the reopen thread. This class
directly extends Thread and instead of calling Thread#start() directly
you can simply pass it to the Executor since it implements Runnable -
is that what you are asking for?

simon
On Sun, Jan 15, 2012 at 7:53 PM, Michael McCandless
<luc...@mikemccandless.com> wrote:
> The ES is just passed through to the IndexSearchers that NRTManager
> opens, so see IndexSearcher's javadocs.
>
> But it's not clear how much passing an ES to IS really helps; you
> should test yourself (and report back!).
>
> Also, I wrote this blog post:
>
>    
> http://blog.mikemccandless.com/2011/11/near-real-time-readers-with-lucenes.html
>
> Describing NRTManager and SearcherManager in general...
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
> On Sun, Jan 15, 2012 at 1:18 PM, Cheng <zhoucheng2...@gmail.com> wrote:
>> I saw the link,
>> https://builds.apache.org/job/Lucene-3.x/javadoc/contrib-misc/org/apache/lucene/index/NRTManagerReopenThread.html,
>> which talks about how to use the NRTManagerReopenThread.
>>
>> I am currently using the Java ExecutorService framework to utilize a
>> multiple threading scenario. Pls see below.
>>
>> ExecutorService executor = Executors
>> .newFixedThreadPool(ERConstants.maxThreads);
>>
>> for(;;){
>> Runnable worker = new MyRunner(writer);
>> executor.execute(worker);
>> }
>>
>> executor.shutdown();
>>
>>
>> My question is how to combine the ExecutorService framework with the
>> NRTManager class.
>>
>> Thanks
>
> ---------------------------------------------------------------------
> 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