Re: problem with the new IndexSearcher when snpainstaller (and commit script) happen [SOLVED]

2011-06-15 Thread Marc Sturlese
I've found the problem in case someone is interested. It's because of the indexReader.reopen(). If it is enabled, when opening a new searcher due to the commit, this code is executed (in SolrCore.getSearcher(boolean forceNew, boolean returnSearcher, final Future[] waitSearcher)): ... if

Re: problem with the new IndexSearcher when snpainstaller (and commit script) happen

2011-06-15 Thread pravesh
Try to look for snapshot.current file in the logs folder in ur SOLR-home dist in your slave server, if this shows the older snapshot. I also faced the similar issue(but with SOLR 1.2.1), using the collection-distribution scripts. The way i resolved it was: 1. Stopped the index replication script(

Re: problem with the new IndexSearcher when snpainstaller (and commit script) happen

2011-06-15 Thread Marc Sturlese
I have some more info! I've build another index bigger than the others so names of the files are not the same. This way, if I move from any of the other index to the bigger one or vicevera it works (I can see the cahnges in the version, numDocs and maxDocs)! So, I thing it is related to the name of

Re: problem with the new IndexSearcher when snpainstaller (and commit script) happen

2011-06-15 Thread Marc Sturlese
I don't know if this could have something to do with the problem but some of the files of the indexes have same size and name (in all the index but not in the empty one). I have also realized that when moving back to the empty index and committing, numDocs and maxDocs change. Once I'm with the empt

Re: problem with the new IndexSearcher when snpainstaller (and commit script) happen

2011-06-15 Thread Marc Sturlese
Test are done on Solr 1.4 The simplest way to reproduce my problem is having 2 indexes and a Solr box with just one core. Both index must have been created with the same schema. 1- Remove the index dir of the core and start the server (core is up with an empty index) 2- check status page of the co

Re: problem with the new IndexSearcher when snpainstaller (and commit script) happen

2011-06-15 Thread Yonik Seeley
What version of Solr is this? Can you show steps to reproduce w/ the example server and data? -Yonik http://www.lucidimagination.com On Wed, Jun 15, 2011 at 7:25 AM, Marc Sturlese wrote: > Hey there, > I've noticed a very odd behaviour with the snapinstaller and commit (using > collectionDistri