Commit, optimize, and rollback the transaction log
Data sent to Solr is not immediately searchable, nor do deletions take immediate effect. Like a database, changes must be committed. There are two types of commits:
- Hard commit: This is expensive because it pushes the changes to the filesystem (making them persistent) and has a significant performance impact. This is performed by the
solrconfig.xmlor by adding
commit=truerequest parameter to a Solr update URL.
- Soft commit: This is less expensive but is not persistent. This is performed by the
solrconfig.xmlor using the
softCommit=trueoption along with the
commitparameter or by using the
The request to Solr could be the ...