# TextParse

Set `TextParse` to `True` if you want to provide an XML or IDX document as QueryText. In this case, IDOL Category Component sets `TextParse` to `True` in the `Query` action that it sends to the Agentstore component.

By default, IDOL Category Component assumes that you provide simple text in the QueryText parameter, and uses this text to query the Agentstore component for matching categories.

When you set `TextParse` to `True`, IDOL Category Component treats the query text as an XML or IDX document (it automatically detects the correct format). IDOL Category Component extracts any `TextParseIndexType` fields in the document and uses them as the query text when it retrieves matching categories. It does not match the rest of the document.

If you also set AgentBoolean to `True`, IDOL Category Component also checks if categories that match the query text contain an AgentBoolean field that matches the original query document (that is, the entire XML or IDX document). ). It returns only categories that have an AgentBoolean field that matches the original query document.

NOTE: Setting AgentBoolean to `True` implicitly sets `TextParse` to `True`. In this case, if you do not provide an XML or IDX document in the QueryText, IDOL Category Component cannot match the text and returns an error.

When you set `TextParse` to `True`, the text that you provide must be a valid IDX or XML document, which in XML must include XML headers and an appropriate document delimiter tag (see DocumentDelimiterCSVs).

Actions: | CategorySuggestFromText
Type: | Boolean
Default: | False
Example: | `TextParse=True`
See Also: | AgentBoolean

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm