O'Reilly logo

Apache Solr PHP Integration by Jayant Kumar

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

Chapter 2. Inserting, Updating, and Deleting Documents from Solr

We will start this chapter by discussing the Solr schema. We will explore the default schema provided by Solr. Further, we will explore:

  • Pushing sample data into Solr
  • Adding sample documents to the Solr index
  • Using PHP to add documents to the Solr index
  • Updating documents in Solr using PHP
  • Deleting documents in Solr using PHP
  • Using commit, rollback, and index optimization

The Solr schema

The Solr schema mostly consists of fields and field types. It defines the fields that are to be stored in the Solr index and the processing that should happen on data being indexed or searched in those fields. Internally, the schema is used to assign properties to the fields used for creating a document ...

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