The include_contents index parameter

Use the include_contents parameter to add the contents field to the index.

The include_contents parameter must be used with either the xmltags parameter specified or with the all_xmltags or all_xmlattrs parameter enabled.

When you do not use XML index parameters, XML documents are indexed as unstructured text in the contents field. When you specify the xmltags parameter or you enable the all_xmltags parameter, you can add the contents field to the index by enabling the include_contents parameter. This allows you to search the unstructured text in the contents field in addition to fields containing the tag or attribute text.

To view the fields that you have indexed, use the bts_index_fields() function. See bts_index_fields() function.