O'Reilly logo

Instant Apache Solr for Indexing Data How-to by Alexandre Rafalovitch

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

Commits and near real-time optimizations (Advanced)

You may have noticed that through the previous examples we have set the commit flag or mentioned implicit commits. That allowed us to concentrate on the effects of our changes and ignore Solr optimizations that are important for production environments.

However, the optimizations around commits are important and the core issues need to be understood.

In this example we will look at the lifecycle that a document change (create, update, delete, and so on) goes through and how different commit settings affect the speed with which these changes become visible to end users.

How to do it...

  1. Copy and rename the collection1 directory to a commit directory, delete the data directory, and add the core reference ...

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