Re: Index + Taxonomy Replication

2013-11-01 Thread Joe Eckard
Thanks Mike, that pointer was a great help - and Shai, that is exactly what I ended up trying. (i.e. creating a new ReferenceManager that takes an IndexSearcher, TaxonomyReader & a SearcherFactory - based on the current SearcherTaxonomyManager.) The only difference is I didn't bother checking the

Re: Index + Taxonomy Replication

2013-11-01 Thread Shai Erera
Opened https://issues.apache.org/jira/browse/LUCENE-5320. Shai On Fri, Nov 1, 2013 at 4:59 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > On Fri, Nov 1, 2013 at 3:12 AM, Shai Erera wrote: > > > Maybe we should offer such a ReferenceManager (maybe it can even be > > SearcherTaxono

Re: Index + Taxonomy Replication

2013-11-01 Thread Michael McCandless
On Fri, Nov 1, 2013 at 3:12 AM, Shai Erera wrote: > Maybe we should offer such a ReferenceManager (maybe it can even be > SearcherTaxonomyManager which takes a pair of Directory in another ctor), > and document that its maybeRefresh needs to be called by the same thread > that modified the index

Re: Index + Taxonomy Replication

2013-11-01 Thread Shai Erera
SearcherTaxonomyManager can be used only for NRT, as it only takes an IndexWriter and DirectoryTaxonomyWriter. And I don't think you want to keep those writers open on the slaves side. I think that a ReferenceManager, which returns a SearcherAndTaxonomy, is the right thing to do. The reason why we

Re: Index + Taxonomy Replication

2013-10-31 Thread Michael McCandless
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.

Index + Taxonomy Replication

2013-10-30 Thread Joe Eckard
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