Re: Slow Index Writes

2014-01-08 Thread Klaus Schaefers
THX! On Wed, Jan 8, 2014 at 10:10 AM, Michael McCandless < luc...@mikemccandless.com> wrote: > NRTManager was renamed to ControlledRealTimeReopenThread at some point. > > But likely simple NRT readers (as Ian described, using > .openIfChanged()) will fit your usage. > > ControlledRealTimeReopenT

Re: Slow Index Writes

2014-01-08 Thread Michael McCandless
NRTManager was renamed to ControlledRealTimeReopenThread at some point. But likely simple NRT readers (as Ian described, using .openIfChanged()) will fit your usage. ControlledRealTimeReopenThread is only necessary if you require certain searches to be real-time, e.g. you just indexed a document

Re: Slow Index Writes

2014-01-07 Thread Ian Lea
I don't have a working example but I believe it's pretty straightforward. See DirectoryReader.open() and .openIfChanged(). -- Ian. On Tue, Jan 7, 2014 at 1:41 PM, Klaus Schaefers wrote: > Hi, > > > I was looking for some examples but I just found some using an NRTManager > class? In Lucene 4

Re: Slow Index Writes

2014-01-07 Thread Klaus Schaefers
Hi, I was looking for some examples but I just found some using an NRTManager class? In Lucene 4.5 I cannot find the class (missing a maven dependency?). Can anyone point me to a working example? Cheers, Klaus On Fri, Jan 3, 2014 at 11:49 AM, Ian Lea wrote: > You will indeed get poor perfo

Re: Slow Index Writes

2014-01-03 Thread Ian Lea
You will indeed get poor performance if you commit for every doc. Can you compromise and commit every, say, 1000 docs, or once every few minutes, or whatever makes sense for your app. Or look at lucene's near-real-time search features. Google "Lucene NRT" for info. Or use Elastic Search. -- I