> hi everyone,
> 
> I do these steps every time the new xml file created (for
> example
> cat_978.xml has just been created):
> 1. delete the index
> (<delete><query>AUC_CAT:978</query></delete>)
> 2. commit the new cat_978.xml (java -jar post.jar
> cat_978.xml)
> 3. restart the java (stop and java -jar start.jar)
> 
> if I'm not done those steps then the query result showed in
> the browser
> still using the old value (cat_978.xml - no changes at all)
> instead of
> reading the new cat_978.xml
> 
> what I want to ask, is there a way so I don't need to
> restart the java since
> it consume too much resources and time?

You dont need to delete old document. Solr replaces it automaticaly. Assuming 
they have same <uniqueKey>. 

Probably HTTP caching causing you problems when testing with browser. You can 
disable it in solrconfig.xml file <httpCaching never304="true">


      

Reply via email to