> ## 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.

# Legacy Aggregations

[localhost link]: http://localhost:3000/docs/4/fusion-ai/concepts/signals-and-aggregations/aggregations/legacy-aggregations

[mintlify link]: https://doc.lucidworks.com/docs/4/fusion-ai/concepts/signals-and-aggregations/aggregations/legacy-aggregations.md

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

> [!NOTE]
>
> This aggregation approach is still available, though it is deprecated and will be removed in a future release. We now refer to this aggregation approach as "legacy aggregations."

[Signals](https://doc.lucidworks.com/docs/4/fusion-ai/concepts/signals-and-aggregations/signals/overview.md) are most useful when they are aggregated into a set of summaries that can be used to enrich the search experience through [recommendations and boosting](https://doc.lucidworks.com/docs/4/fusion-ai/concepts/boosting/overview.md).

Aggregation jobs are a subtype of [Spark jobs](https://doc.lucidworks.com/docs/4/fusion-server/concepts/jobs/spark-jobs.md).

When signals are enabled for a "primary" collection, a `<primarycollectionname>_signals` collection and a `<primarycollectionname>_signals_aggr` collection are created automatically.

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Aggregation Pipelines

Aggregated events are indexed, and use a default pipeline named "aggr\_rollup". This pipeline contains one stage, a Solr Indexer stage to index the aggregated events.

You can create your own custom index pipeline to process aggregated events differently if you choose.

## Aggregation Functions

The section [Aggregator Functions](https://doc.lucidworks.com/docs/4/fusion-ai/concepts/signals-and-aggregations/aggregations/aggregator-functions.md) documents the available set of aggregation functions.

Custom aggregation functions can be defined via a JavaScript stage.

## Aggregation job configuration

The groupingFields should use just `user_id_s`, and optionally the "sort" parameter should be set to `timestamp_tdt asc` - this way the sessionization process will work most efficiently. On the other hand, sorting by timestamp requires more work on the Solr-side, so it may be omitted, with the possible side-effect that there will be additional partial documents created.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.