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

The schema.xml file

Let's finally explore a Solr schema.

Before we continue, find a schema.xml file to follow along. This file belongs in the conf directory for a Solr Core instance configuration. For simple single-core Solr setups, this is the same as a Solr home directory. We suggest looking at configsets/mbtype/conf/schema.xml in the example code distributed with the book, available online. If you are working off of the Solr distribution, you'll find it in example/solr/collection1/conf/schema.xml. The example schema.xml is loaded with useful field types, documentation, and field definitions used for the sample data that comes with Solr.

Tip

We prefer to initialize a Solr configuration by copying the example Solr home directory and liberally modifying ...

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