Thanks Marc.  
Guess I was not clear about my previous statement. So let me rephrase.

I use DIH to import data into solr and do indexing. Everything works fine.

I have another embedded solr server setting to the same index files. I use
embedded solrj to search the index file.

So the first solr is for indexing purpose, it can be turned off once the
indexing is done.

However the changes in the index files cannot show up from embedded solrj,
that is, once the new index is built, from embedded solrj, I still get the
old results. Only after I restart the embedded solr server, the new changes
are reflected from solrj.  The embedded solrj works like there was a caching
that it always goes to first.

Thanks.

JB


-----Original Message-----
From: Marc Sturlese [mailto:marc.sturl...@gmail.com] 
Sent: Friday, July 22, 2011 1:57 AM
To: solr-user@lucene.apache.org
Subject: RE: embeded solrj doesn't refresh index

Are u indexing with full import? In case yes and the resultant index has
similar num of docs (that the one you had before) try setting reopenReaders
to false in solrconfig.xml
* You have to send the comit, of course.

--
View this message in context:
http://lucene.472066.n3.nabble.com/embeded-solrj-doesn-t-refresh-index-tp318
4321p3190892.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to