RE: Warming Indexes

2016-12-21 Thread Siraj Haider
Subject: RE: Warming Indexes Hi, The warmup only happens if you reopen the searcher using the NRT APIs or searcher manager. If you just index with a single IndexWriter that has no open NRT readers, nothing will happen. To warmup when the application starts, I'd suggest to use the

RE: Warming Indexes

2016-12-21 Thread Uwe Schindler
jobdiva.com] > Sent: Wednesday, December 21, 2016 3:58 PM > To: java-user@lucene.apache.org > Subject: RE: Warming Indexes > > Thanks Uwe, I implemented the interface and am printing some lines to see if > the warmup is happening, but I never see those prints in the log after some >

RE: Warming Indexes

2016-12-21 Thread Siraj Haider
@lucene.apache.org Subject: RE: Warming Indexes Hi, Just implement this interface and override the sole abstract method. The argument is a LeafReader that you can quickly wrap with an IndexSearcher (LeafReader is a subclass of IndexReader, so it's standard pattern) and execute one or mul

RE: Warming Indexes

2016-12-19 Thread Uwe Schindler
gt; To: java-user@lucene.apache.org > Subject: RE: Warming Indexes > > Thanks for the information Uwe, it was very helpful. Do you have any > example code implementing IndexWriter.IndexReaderWarmer class? I am > having difficulty finding any examples on internet. > > -- >

RE: Warming Indexes

2016-12-19 Thread Siraj Haider
...@thetaphi.de] Sent: Wednesday, December 14, 2016 3:34 PM To: java-user@lucene.apache.org Subject: RE: Warming Indexes Hi, How about subclassing SearcherFactory and include warming there? https://lucene.apache.org/core/6_3_0/core/org/apache/lucene/search/SearcherFactory.html Refer especially to the

RE: Warming Indexes

2016-12-14 Thread Uwe Schindler
Hi, How about subclassing SearcherFactory and include warming there? https://lucene.apache.org/core/6_3_0/core/org/apache/lucene/search/SearcherFactory.html Refer especially to the last bullet point. As described there to do warming in the background without blocking in the near realtime case, u