IDOL Server Operations > AgentBoolean Agents and Categories > AgentBoolean Agents and Categories > Examples

Examples
IDOL server stores agents and categories in the Agentstore component in the same way as IDOL server stores documents. You can create them using IDOL server actions, or you can index an IDX or XML agent or category into the Agentstore component. For example:
#DREREFERENCE 947344A0
#DRETITLE
My Cat and Dog Agent
#DREFIELD MyABField="cat AND dog"
#DREFIELD FieldTextField="MATCH{cat}:Animal"
#DRECONTENT
cat
#DREENDDOC
Similarly, you can search for agents and categories in the Agentstore component in the same way that you search for documents in IDOL server.
For example, you can find agents and categories that match a document. This process allows you to categorize documents, or alert users when a new document matches their agent.
In this case, AgentBoolean expressions can improve the performance and accuracy for matching documents. It also provides extra functionality that you cannot easily achieve with simple conceptual agents.
Match Specific Concepts
If you have an Apollo category, it matches documents that contain the concepts Apollo space program and Greek god Apollo. You can use a Boolean expression to specifically restrict results to one or other of the concepts. For example:
"Space Program" NOT "Greek god"
Use Field Restrictions
You can use field restrictions in your AgentBoolean expressions, to match only the most relevant documents. For example:
"New Zealand":COUNTRY AND wine.
This expression matches documents that contain the phrase New Zealand in the COUNTRY field, and contain the term wine.
Related Topics 
*
Categorize Documents before Indexing
The IndexTasks Cat module allows you to match documents against categories before you index them, and to tag the document with the appropriate category. You can use AgentBoolean categories for more specific categorization. This method speeds up future searches for documents that match a category, because the document is already tagged.
You can also use this method to prevent documents from being indexed, based on the category data. For example, you can automatically prevent IDOL server from indexing a document that contains sensitive or restricted material.
Related Topics 
*
*
Alert Users to Documents that Match Their Agents
The IndexTasks Alert module allows you to alert users to documents that match their agents before you index the documents. When it receives a new document, the Alert module sends a TextParse query to IDOL server to find all agents that match the document, and then e-mails the users who own those agents.
TextParse queries allow you to send a whole IDX or XML document to IDOL server in a query. IDOL server extracts fields that you configure as TextParseIndexType from the document and uses it as the query text.
AgentBoolean rules improve the speed and accuracy of this agent matching procedure.
Related Topics 
*
*