Search code examples
solrlucenesolrjsolrnetsolrcloud

Num Docs is not updating in SOLR admin UI page


I have app sending update request to solr, but the commit option is handled in solrconfig.xml and the auto commit is to 15000 MS . Now problem is the Num Docs in UI page is not updating and even if i give search request none of the documents are visible could anyone let me know how to check whether my autocommit is working or not.

Once i restart the solr the number of documents will be reflected and i will be able to search. Will the ideal case be the same everytime do we need a solr service restart for autocommit to get effect ?

Thanks


Solution

  • You need to set the soft commit in your solrconfig.xml file. This makes the added documents available to search. Soft commits are light weight, set it to 2000 milliseconds.