Content Component 25.4
Content Component Help

# FlattenIndexType

The hierarchical fields with this property are indexed as one level. When the Content component indexes one of the associated PropertyFieldCSVs, it indexes all subfields in the specified `FlattenIndexType` field as part of the parent field.

For example, if you configure `*/subject` as `FlattenIndexType`, and index the following XML:

    <documents>
       <article id="_21498602">
          <url>http://example.com/21490.html</url>
          <hltext_display>The history of pharmacogenetics </hltext_display>
          <source>Science Online</source>
          <media_type>text</media_type>
          <subject>
             <text>The prologue to pharmacogenetics began to play out around 1850 and spanned some 60 years into the 1900s.</text>
             <text>In 1953, the molecular basis of heredity, the double helix of DNA, was described.</text>
          </subject>
       <valid_time>Jul 13 2001 5:00AM</valid_time>
       </article>
    </documents>

Content indexes the `subject` field, and the contents of the two `text` subfields as the content of the `subject` field.

If you now query for a particular term in the `subject` field that is actually contained in a level below the `subject` field, for example the term pharmacogenetics, this document returns. If you did not flatten the `subject` field, the query would not return the document, because the `subject` field itself does not contain this term.

NOTE: You must configure any fields that you set as `FlattenIndexType` to also be Index fields.

For example, if you configure `*/subject` as `FlattenIndexType`, you must configure `*/subject` and `*/subject/*` with the Index property.

Type: | Boolean
Default: | False
Required: | No
Configuration Section: | `MyProperty`
Example: | `FlattenIndexType=True`
See Also: | Property PropertyFieldCSVs

NOTE: If you change this setting after you have indexed content into the Content component, you must reindex the content.

Copyright 2025 Open Text
Version 25.4 | Last updated October 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Content Component 25.4

Topic Title: FlattenIndexType