Tamino XML Server Version 9.7
 —  Tamino XML Schema Reference Guide  —

tsd:index

Purpose

This element allows you to specify whether an index (standard index, text index, compound index, reference index, or – for doctypes – computed index) should be created for the current schema element.

It is only possible to define indexes for native storage, not for any kind of mapping.

Parent element tsd:native
Child elements tsd:computed, tsd:reference, tsd:standard, tsd:text
Attributes None
Type xs:complexType

Example 1

This example shows the tsd:index element required for the definition of a standard index:

<tsd:attributeInfo>
  <tsd:physical>
    <tsd:native>
      <tsd:index>
        <tsd:standard/>
      </tsd:index>
    </tsd:native>
  </tsd:physical>
</tsd:attributeInfo>

Example 2

Another example for the definition of a standard index:

<xs:element name = "firstname" type="xs:string">
  <xs:annotation>
    <xs:appinfo>
      <tsd:elementInfo>
        <tsd:logical>
           ...
        </tsd:logical>
        <tsd:physical>
          <tsd:native>
            <tsd:index>
              <tsd:standard/>
            </tsd:index>
          </tsd:native>
        </tsd:physical>
      </tsd:elementInfo
    </xs:appinfo>
  </xs:annotation>
</xs:element>

Top of page