Content Type-dependent Fields

In addition to the standard fields, an index document contains one field for each field defined in a content item's content-type definition. These fields' names are composed from the field names and types defined in the content-type resource, as follows:

field-name_type-name

where:

field-name

is the name of the field as defined in the content-type resource. In the special case of the title field (the field designated as the title field with the ui:title-field element), title is always used, irrespective of the the field's actual name.

type-name

is derived from the field type defined in the content-type resource as follows:

content-type Field Type type-name

basic

text

number

double

boolean

b

enumeration

enum

date

date

link

link

schedule

start_tdate and end_tdate

For example, a content type with the following field definitions in the content-type resource:

   <ui:title-field>headline</ui:title-field>
  <panel name="main">
    <field mime-type="text/plain" type="basic" name="headline"/>
    <field mime-type="text/plain" type="basic" name="summary"/>
    <field mime-type="application/xhtml+xml" type="basic" name="body"/>
    <field type="number" name="score"/>
    <field type="enumeration" name="category" />
  </panel>

will result in the following Solr field names:

title_text (this is actually the headline field, which has been designated the title field)
summary_text
body_text
score_double
category_enum