---
title: "Use Solr soft commits"
slug: "use-solr-soft-commits"
abstract: "Configure solrconfig.xml to use Solr soft commits in Sitecore search for faster index changes."
---
# Use Solr soft commits

When using Solr as the search provider, you can configure it to handle indexed data using soft commits. Visit the [Solr documentation](https://solr.apache.org/guide/solr/latest/configuration-guide/commits-transaction-logs.html#hard-commits-vs-soft-commits) for an explanation about the advantages of soft commits.

To use soft commits in content search:

1. Optionally, in Solr, use `autoCommit` to [configure automatic commits](https://solr.apache.org/guide/solr/latest/configuration-guide/commits-transaction-logs.html#automatic-commits) settings such as `maxDocs`, `maxSize`. If you don't configure Solr, default values are used.

    > [!important]
    > Don't use `autoSoftCommit`, or it might cause issues when updating an index-dependent cache.

2. Create a patch file to modify the Sitecore `Sitecore.ContentSearch.Solr.DefaultIndexConfiguration.config` file, and enable soft commits by setting the `ContentSearch.Solr.UseSoftCommits` value to `true`.