Summary
In this chapter we started off by discussing the Solr schema. We got a basic understanding of how the Solr schema works. We then added some sample documents to our Solr index. Then we saw multiple pieces of code to add, update, and delete documents to our Solr index. We also saw how to use cURL to delete documents. We discussed how commit and rollback work on the Solr index. We also saw an example of how to use rollback in our code. We discussed index optimization using PHP code and the benefits of optimizing the Solr index.
In the next chapter we will see how to execute search queries on Solr using PHP code and explore different query modes available with Solr.