Creating string indexes

You create string indexes in the Index Definition document. To be able to do so, you must check the Index Definition document out and save it on your hard drive.

String indexes index the content of XML elements or attributes as a whole. For conceptual information about string indexes, refer to the TEXTML Server Administration Guide.

To create a string index:

  1. Open the Index Definition document with any XML editor.
  2. Under the root element <indexdefinition> add an <indexes> element, which will hold each defined index.
  3. Under <indexes> add an <index> element, which represents one index. Specify the name of the index in the NAME attribute of <index>.
  4. Under <index> specify the type of index you are defining. To define a string index add a <stringindex> element. You may add an <admindescription> element to enter a description for your index.
  5. Under <stringindex> add an <elements> element to hold the list of elements whose content you want indexed.
  6. Under <elements> add an <element> element, which represents one XML element.
    You may add as many <element> elements as XML elements you want indexed.
    1. Specify the XPath of the element as value to the XPATH attribute of <element>
    2. You may specify an integer or INFINITE as value to the DEPTH attribute to specify to which extend the content must be indexed.
      0 means the content of the element itself is indexed, his children are ignored. 1 means the content of the element and its immediate child are indexed. 2 refers to the next level of child elements, and so on. INFINITE means that the content of all children of the element must be indexed. If you do not specify a depth, the default INFINITE value is implied.
         <element XPATH="//fig/title" DEPTH="0"/>