Thursday, March 17, 2016

SOLR : Internal Server Error on calling deleteById()

Shifting from local environment to integration environment, my code suddenly started to throw Internal Server Error while calling SolrServer.deleteById(List<String>) , I googled it, found some solutions talking about locking mechanism and thread pool size and similar stuff, but It didn't work, I made a small test case that deletes one part with no threads... It gave the same exception.
I looked at the schema and realized that some one commented out the <uniqueKey>id</uniqueKey> tag ... and that's it :( ....... I just uncommented it again, restarted the solr application and all was ok