4. Defining Fields (schema.xml)
Single Value
<field name="name" type="text_general" indexed="true" stored="true"/>
Multi Values
<field name="title" type="text_general" indexed="true" stored="true"
multiValued="true"/>
Not stored
<field name="text" type="text_general" indexed="true" stored="false"
multiValued="true"/>
5. Copying Fields (schema.xml)
• You might want to interpret some document fields in more than one way
<copyField source="cat" dest="text"/>
<copyField source="name" dest="text"/>
<copyField source="features" dest="text"/>
<copyField source="*_t" dest="text" maxChars="25000" />
6. Dynamic Fields (schema.xml)
• Dynamic fields allow Solr to index fields that you did not explicitly define in
your schema
• Dynamic field is just like a regular field except it has a name with a wildcard in it
<dynamicField name="*_i" type="int" indexed="true"
stored="true"/>