Analyzes the text that you specify and generates basic statistics, such as the number of terms, sentences, paragraphs, and stop words in the specified text, and the number of terms that appear in IDOL Content Component.


You can use this action for a quick query syntax check by setting QueryAnalysis. The action returns an error when the query syntax in the Text parameter is incorrect.


This is an administrative action that can be sent only by users that belong to an authorization role that allows the Admin standard role, or which enables the action explicitly. See Authorization Roles Configuration Parameters.

The following XML is an example of the output of the DocumentStats action.

   <average_percent_dredococcs>4.216</   average_percent_dredococcs>

To use DocumentStats for queries that include Wildcard terms, you must set the TermPositions parameter to True.


This action uses port 9000 to request document statistics for the term businesses from IDOL Content Component which is located on a machine with the IP address


Parameter Description Required
AnyLanguage Allows IDOL Content Component to return documents in any language.  
CostEstimate Whether to return a cost estimate for the query.  
LanguageType The language type of the text.  
MatchID A list of document references from which to return the term position for the specified text.  
MatchReference A list of document references from which to return the term position for the specified text.  
QueryAnalysis Returns information about the elements of a query.  
QueryStats Whether to return information about the optimal content to use for an AgentBoolean rule.  
Synchronous Whether to run the action synchronously or asynchronously.  
Text The text for which statistics are returned. Yes
TermPositions Returns a list of the positions of the occurrences of any terms that satisfy the query text.  

This action accepts the following standard ACI action parameters.

Parameter Description
ActionID A string to use to identify an ACI action.
EncryptResponse Encrypt the output.
FileName The file to write output to.
ForceTemplateRefresh Forces the server to load the template from disk.
Output Writes output to a file.
ResponseFormat The format of the action output.
Template The template to use for the action output.
TemplateParamCSVs A list of variables to use for the specified template.