I'm curious as to whether it's possible to abuse merged segment warmers to
run some queries on all documents that have been newly added to an index.
This would be run in the context of a large, continuously growing index
(using NRT search), and would allow me to publish live streams of incoming
do
You only need one SearcherManager instance for every IndexWriter you have
open (basically, one for your application). The SearcherManager class is
thread-safe- that's the point- so all threads can retrieve their
IndexSearchers from it without any additional synchronization in your code.
So you ca
The two directories won't be synchronized. As the RAMDirectory JavaDocs
say:
Note that the resulting RAMDirectory instance is fully independent from the
original Directory (it is a complete copy). Any subsequent changes to the
originalDirectory will not be visible in the RAMDirectory instance.
S