Appendix A. Sample Configuration for Apache Solr

Let's look at some of the real configuration files. We are only going to look at additions or changes to these files.

schema.xml

Broadly, schema.xml contains the following information:

  • Different types of field names of schema, and data types (<fields>…<field>)
  • Definition of user/seeded defined data types (<types>…<fieldTypes>)
  • Dynamic fields (<fields>….<dynamicField>)
  • Information about unique key to define each document uniquely (<uniqueKey>)
  • Information regarding query parser for Solr (<solrQueryParser>)
  • Default search field to be used when the user does not pass the field name (<defaultSearchField>)
  • Information about copying the field from one field to another (<copyField>)

In the Configuring the Apache ...

Get Scaling Apache Solr now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.