new segments and merged segments

2012-08-16 Thread Greg Steffensen
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

Re: question about SearcherManager in version 3.5.0

2012-01-07 Thread Greg Steffensen
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

Re: How to use RAMDirectory more efficiently

2012-01-01 Thread Greg Steffensen
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