All contents of this article are translated from SOLR's own configuration file.
1. Field Node description
Name: Required, field names
Type: Required, the name of the type defined by the FieldType section
Indexed: If you want this field to be indexed set to true (searchable or sortable)
Stored: If you want this field to be restored, set to true. In layman's words, it should be set to true if you want to be able to query this field when searching.
Docvalues: If this field should have a document value (Doc values), set to True. Document values are useful in façade search, grouping, sorting, and function queries. Although not required, it can cause the build index to become larger and slower, but this setting makes the index load faster, more NRT friendly, and more efficient in memory usage. However, there are some restrictions on the use
Strfield, Uuidfield, and all trie*fields, and depending on the field type, may require that the field be a single value (single-valued), or have a default value.
Multivalued: Set to True if this field may contain multiple values in each document
Required: If this field is required, set to True
Default: When adding a document, if you do not set a value for this field, the defaults will be used
2, DynamicField
Dynamic fields allow SOLR indexes to have no explicitly defined fields in the schema. This is useful when you forget to define some fields. Dynamic fields can make the system more flexible and more versatile.
For example, to index a field called cost_i, but there is no cost_i field in the schema, so cost_i will be indexed to the *_i field.
Note: The pattern defined in name can only have one at the beginning or the end
3, UniqueKey
Unique identification of the document. UniqueKey The specified field must be Required=true
4, FieldType
Defining field types
solr5.5 Tutorial-schema.xml Partial configuration