O'Reilly logo

Apache Solr Enterprise Search Server - Third Edition by Matt Mitchell, Kranti Parisa, Eric Pugh, David Smiley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 <autoCommit> option in solrconfig.xml or by adding commit=true request parameter to a Solr update URL.
  • Soft commit: This is less expensive but is not persistent. This is performed by the <autoSoftCommit> option in solrconfig.xml or using the softCommit=true option along with the commit parameter or by using the commitWithin parameter.

The request to Solr could be the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required