Defining properties for time indexes

When you define properties for your time indexes you indicate TEXTML Server how to interpret the times encountered in the documents. Doing so, you ensure that the times are stored properly and therefore you ensure the accuracy of the searches.

If you do not define time properties, that is if you let the <timeindexproperties> and/or the <element> elements empty, TEXTML Server uses a default definition to recognize and index times.

For conceptual information about time indexes and properties, refer to the TEXTML Server Administration Guide.

To define properties for a time index:

  1. In the Index Definition document, locate the <timeindexproperties> element, if you want to define properties for the whole index, or the <element> element, if you want to define properties for a specific element.
  2. Under <timeindexproperties> and/or <element> add a <formats> element and as many <format> child element as formats you want to specify.
  3. Specify the name of the format as value to the <format> element’s attribute NAME.
    All formats are listed in the DATETIME_FORMATS.XML document located in TEXTML Server’s Documentation folder.
    <timeindexproperties> 
       <formats> 
          <format NAME="en_US"/> 
          <format NAME="fr_FR"/> 
       <format> 
       </timeindexproperties>