: I want to use Solr to provide a web-based read-only view of this index. 
: I require that the index not be locked in any way while Solr is using it 
: (so the Java program can continue updating it) and that Solr is able to 
: see new documents added to the index, if not immediately, at least a 
: couple of times a day.

This should be possible.  It's essentially what happens on a 'slave" 
instance of SOlr where replication updates the index.  you notify solr 
with a "commit" to tell it to open the new index after you've made changes 
with your existing application.

: My first attempt to do this resulted in my Java program throwing a 
: CorruptIndex exception. It appears as though Solr has somehow modified 

I'm not sure why this might have happened if you didn't attempt any 
updates with Solr, but one thing to check is if you are using 
<lockType>single</lockType> in your solrconfig.xml?  

that would make solr use an in memory lock file and it wouldn't notice 
your application already had a lock for updating the index if it did try 
to make a change.  You'll want to use <lockType>simple</lockType> (and 
make sure your app doesn't override the location of the lock file -- it 
needs to use the default lock file name in the index directory)



-Hoss

Reply via email to