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
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
>
@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
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.
>
> --
>
...@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
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