By the way, I was using command=indexversion to verify replication is on or off. Since it seems not reliable, is there a better to do it?
Thanks, On Thu, Aug 6, 2009 at 8:43 AM, solr jay <solr...@gmail.com> wrote: > You are right. Replication was disabled after the server was restarted, and > then I saw the behavior. After I added some data, command "indexversion" > returns the right values. So it seems Solr behaved correctly. > > Thanks, > > 2009/8/5 Noble Paul നോബിള് नोब्ळ् <noble.p...@corp.aol.com> > > how is the replicationhandler configured? if there was no >> commit/optimize thhen it would show the version as '0' >> >> On Thu, Aug 6, 2009 at 5:50 AM, solr jay<solr...@gmail.com> wrote: >> > Hi, >> > >> > http://localhost:8549/solr/replication?command=enablereplication >> > >> > does not seem working. After making the request, I run >> > >> > http://localhost:8549/solr/replication?command=indexversion >> > >> > and here is the response: >> > >> > >> > <response> >> > <lst name="responseHeader"> >> > <int name="status">0</int> >> > <int name="QTime">0</int> >> > </lst> >> > <long name="indexversion">0</long> >> > <long name="generation">0</long> >> > </response> >> > >> > >> > Notice the indexversion is 0, which is the value after you disable >> > replication. On the other hand >> > >> > http://localhost:8549/solr/replication?command=details >> > >> > returns: >> > >> > >> > <response> >> > >> > <lst name="responseHeader"> >> > <int name="status">0</int> >> > <int name="QTime">7</int> >> > </lst> >> > >> > <lst name="details"> >> > <str name="indexSize">692 bytes</str> >> > >> > <str name="indexPath"> >> > /tmp/solr/solrdata/index >> > </str> >> > <arr name="commits"/> >> > <str name="isMaster">true</str> >> > <str name="isSlave">false</str> >> > <long name="indexVersion">1249517184279</long> >> > <long name="generation">2</long> >> > >> > <lst name="master"> >> > <str name="replicateAfter">commit</str> >> > </lst> >> > </lst> >> > >> > <str name="WARNING"> >> > This response format is experimental. It is likely to change in the >> future. >> > </str> >> > </response> >> > >> > >> > Notice that the indexversion is 1249517184279. >> > >> > thanks, >> > >> > -- >> > J >> > >> >> >> >> -- >> ----------------------------------------------------- >> Noble Paul | Principal Engineer| AOL | http://aol.com >> > > > > -- > J > -- J