Content Component 25.4
Content Component Help

# Query with Binary Categories

After you train the binary category, you can use the `BinaryCatQuery` action to determine whether a piece of text, a file on disk, or a document in the Content component index results in a “yes” (POSITIVE) or a “no” (NEGATIVE) answer for the question that the binary category asks. For example, your binary category might ask the question “Is this spam?” and could filter emails to ignore spam emails. For details on the `BinaryCatQuery` action, refer to the Category component Reference.

For example:

    http://12.3.4.56:9020/action=BinaryCatQuery&Name=spam_binarycat&QueryText=How to become an instant millionaire

This action uses port `9020` to instruct the Category component, which is located on a machine with the IP address `12.3.4.56`, to check whether the text `How to become an instant millionaire` results in a “POSITIVE” or a “NEGATIVE” result for the question posed by the binary category `spam_binarycat`.

Related Topics

- Display Online Help

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: Query with Binary Categories