Close
dtSearch Engine API for Java
TextFlags.dtsoTfXmlAsText Field

Index XML files as text, without applying field attributes to the content.

Syntax
Java
public static final int dtsoTfXmlAsText = 0x100;

Use dtsoTfXmlAsText to suppress field attributes in XML files while indexing all of the text. Using this flag will make indexing and searching faster and more efficient when XML field searches are not needed. 

When XML data is indexed with dtsoTfXmlAsText flag set, all words in the XML files will be searchable, and all field names will also be searchable. For example, if an XML file contains <Name> Smith</Name>, then you can still search for "Name" or "Smith" after indexing with dtsoTfXmlAsText set. A search for "Name contains Smith" will not work. Field searches for non-XML content will still work, and field searches for metadata added using the DataSource API's DocFields property will also still work. 

Because complex XML field structures can add significant overhead to indexing and searching, use of this flag is recommended in high-volume indexing and search applications such as forensics and E-discovery, if field-specific searches for content in XML will not be needed.