Creating numeric indexes

You create numeric 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. Numeric indexes index the content of XML elements or attributes that contain numeric values.

For conceptual information about numeric indexes, refer to the TEXTML Server Administration Guide.

To create a numeric 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 numeric index add a <numericindex> element. You may add an <admindescription> element to enter a description for your index.
  5. Under <numericindex> add an <integerindexproperties> element to index integer values, or a <decimalindexproperties> element to index decimal values.

    See Defining integer properties for numeric indexes to define integer index properties.

    See Defining decimal properties for numeric indexes to define decimal index properties.

  6. Under <numericindex> add an <elements> element to hold the list of elements whose content you want indexed.
  7. Under <elements> add an <element> element, which represents one XML element of your documents whose content you want indexed.
    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.
      <elements> 
         <element XPATH="//book/refnum" DEPTH="0"/> 
         <element XPATH="//book/ISBN" DEPTH-"0"/>
      </elements>