> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Aggregation Configuration Parameters

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

[localhost link]: http://localhost:3000/docs/4/fusion-ai/reference/aggregations/aggregation-config-params

[mintlify link]: https://doc.lucidworks.com/docs/4/fusion-ai/reference/aggregations/aggregation-config-params

[old doc.lw link]: https://doc.lucidworks.com/fusion-ai/4.2/588

<LwTemplate />

## Aggregation configuration parameters

|                    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `groupingFields`   | An array of strings specifying the fields to group on.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `signalTypes`      | The signal types. If not set then any signal type is selected.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `selectQuery`      | The query to select the desired signals. If not set then `\*:\*` will be used, or equivalent.                                                                                                                                                                                                                                                                                                                                                                                      |
| `sort`             | The criteria to sort on within a group. If not set then sort order is by ID, ascending.                                                                                                                                                                                                                                                                                                                                                                                            |
| `timeRange`        | The time range to select signals on, e.g., `[* TO NOW]`. See [Solr date range](https://solr.apache.org/guide/8_8/working-with-dates.html) for more options.                                                                                                                                                                                                                                                                                                                        |
| `outputPipeline`   | What pipeline to use to process the output. If not set then `_system` pipeline will be used.                                                                                                                                                                                                                                                                                                                                                                                       |
| `rollupPipeline`   | Pipeline to use for processing results of roll-up. This is by default the same index pipeline used for processing the aggregation results.                                                                                                                                                                                                                                                                                                                                         |
| `rollupAggregator` | The aggregator to use when rolling up. If not set then the same aggregator will be used for roll-up.                                                                                                                                                                                                                                                                                                                                                                               |
| `outputCollection` | The collection to write the aggregates to on output. This property is required if the selected output/rollup pipeline requires it (the default pipeline does). A special value of `-` disables the output.                                                                                                                                                                                                                                                                         |
| `aggregator`       | Aggregator implementation to use. This is either one of the symbolic names (simple, click, em) or a fully-qualified class name of a class extending EventAggregator. If not set then 'simple' is used.                                                                                                                                                                                                                                                                             |
| `sourceRemove`     | If true, the processed source signals will be removed after aggregation. Default is false.                                                                                                                                                                                                                                                                                                                                                                                         |
| `sourceCatchup`    | If true, only aggregate the signals since the last time the job was successfully run. If there is a record of such previous run then this overrides the starting time of time range set in `timeRange` property.                                                                                                                                                                                                                                                                   |
| `outputRollup`     | Roll-up current results with all previous results for this aggregation id, which are available in `outputCollection`.                                                                                                                                                                                                                                                                                                                                                              |
| `aggregates`       | List of functions defining how to aggregate events with results. Aggregation functions have these properties: <br />• `type` The function type defining how to aggregate events with results. <br />• `sourceFields` The fields that the function will read from. <br />• `targetField` The field that the function will write to. <br />• `mapper` When true the function will be used in map phase only. <br />• `parameters` Other parameters specific to individual functions. |
| `statsFields`      | List of numeric fields in results for which to compute overall statistics.                                                                                                                                                                                                                                                                                                                                                                                                         |
| `parameters`       | Other aggregation parameters (such as start / aggregate / finish scripts, cache size, and so on).                                                                                                                                                                                                                                                                                                                                                                                  |
