Once your primary work of field types setup is done, field definition is a small task. Just as with field types, the fields element of schema.xml holds the field definition.
Field management
Field properties
Let's first see a sample field definition:
<field name="weight" type="float" default=”0.0” indexed="true" stored="true"/>
In the preceding example, we have defined a field named weight, whose field type is float with a default value of 0.0. Moreover, the indexed as well as stored properties are explicitly set to true.
Field definitions will have these properties:
- name: The field name. This has to be alphanumeric and...