We can define the structure of a Solr document by writing the
schema.xml file (by defining its fields); we can also define some data manipulation strategy such as tokenizing texts in order to take care of single words instead of full phrases. The steps for writing a simple
schema.xml file are as follows:
schema.xmlfile will involve the following elements:
<schema name='simple' version='1.1'> <types> … </types> <fields> … </fields> <uniqueKey> … </uniqueKey> ...