Maybe have a look at how the IndexAndTaxonomyReplicationClientTest.java works?

Hmm, in its callback, it manually reopens the index + taxoIndex, but I
think you could instead use a SearcherTaxonomyManager and call its
.maybeRefresh inside your callback?

Mike McCandless

http://blog.mikemccandless.com


On Wed, Oct 30, 2013 at 11:24 AM, Joe Eckard <eckar...@gmail.com> wrote:
> Hello,
>
> I'm attempting to setup a master/slave arrangment between two servers where
> the master uses a SearcherTaxonomyManger to index and search, and the slave
> is read-only - using just an IndexSearcher and TaxonomyReader.
>
> So far I am able to publish new IndexAndTaxonomyRevisions on the master and
> pull them down to the slave with no problems (using the HttpReplicator and
> an IndexAndTaxonomyReplicationHandler), but I'm not sure how to correctly
> reopen the IndexSearcher and TaxonomyReader pair in the
> ReplicationHandler's callback.
>
> Should I wrap them in some kind of ReferenceManager to allow searches to
> continue on the read-only server during the cutover? Is there a specific
> order they should be reopened in?
>
> Any advice or pointers would be much appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to