Query Manipulation Server 25.3
Query Manipulation Server Help

# AddStat

The `AddStat` action creates a new statistic while Statistics Server is running, and adds the statistic to the Statistics Server configuration file.

## Parameters

The `AddStat` action supports the following parameters.

### Name

The name of the new statistic. A configuration section with the specified name is added to the Statistics server configuration file.

Type: | String
Default: | None
Required: | Yes
Example: | `Name=dynamicTopN`

### ConfigurationOption

Configuration parameters to add for the new statistic. Add each configuration option that you want to configure as an action parameter for the `AddStat` action. Statistics Server adds these parameters to the configuration section for the new statistic.

You can add the following configuration parameters:

- AEqualStat

- ARangeStat

- BitANDStat

- NEqualStat

- NRangeStat

- DynamicField

- Field

- Offset

- Operation

- Period

## Example

    action=AddStat&Name=NewStat&Period=5&Field=Term&Operation=TopN,all

This creates the following section in the configuration file.

    [NewStat]
    Period=5
    Field=Term
    Operation=TopN,all

Copyright 2025 Open Text
Version 25.3 | Last updated July 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 Query Manipulation Server 25.3

Topic Title: AddStat