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 ...

Get Instant Apache Solr for Indexing Data How-to now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.