# TextParse

If you have specified an AgentBooleanField for the query, you can set `TextParse` to `true` to treat the specified Text as a percent-encoded document in IDX or XML format (the correct format is automatically detected). IDOL server extracts any `TextParseIndexType` fields in this document, and then uses them as the query Text (the rest of the document is not matched).

When it runs the query, IDOL server checks if documents that match the query Text contain an AgentBoolean field that matches the original query text (that is the `TextParseIndexType` fields in the original XML or IDX document that was passed in as the Text field). It filters out any documents whose AgentBoolean field does not match the original query text before returning results.

NOTE: All fields in the `TextParse` document that contain text that you want the AgentBoolean expression to match must appear in at least one document in the IDOL server Data index. For this purpose, it might be useful to index an empty dummy document that contains all the fields that you use in `TextParse` documents (even you delete the document afterwards).

Actions: | Query
Type: | Boolean
Default: | False
Example: | `TextParse=true`
See Also: | AgentBooleanField FieldTextField

_FT_HTML5_bannerTitle.htm