I have an index with about a million documents. It is the backend for a shopping cart system.
Sometimes the inventory gets out of sync with solr and the storefront contains out of stock items. So I setup a scheduled task on the server to run at 12am every morning to delete the entire solr index. Then at 12:04am I run another scheduled task to re-index the SQL database containing the inventory. Well, today I check it around 4am and only a fraction of the products are in the solr index. However, it did not seem to be idle and reloading it showed lots of deleted documents. I open up the core and the deletes keep going up, max docs goes up, but the total docs stays the same. It's really confusing me what is happening at this point and why I am viewing these numbers of docs. My theory is that the 12am delete is still running 5 hours later at the same time as the re-indexing. That's the only way I can explain this really odd behavior with my limited knowledge. Is my theory realistic and could the delete still be running? -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html