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

# Aggregations

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/concepts/signals-and-aggregations/aggregations/overview

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

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

Aggregations compile [Signals](/docs/4/fusion-ai/concepts/signals-and-aggregations/signals/overview) into a set of summaries that you can use to enrich the search experience through [recommendations and boosting](/docs/4/fusion-ai/concepts/boosting/overview).

You can create two kinds of aggregations:

* [**SQL aggregations.**](/docs/4/fusion-ai/concepts/signals-and-aggregations/aggregations/sql-aggregations) Strongly recommended. SQL is a familiar query language that is well suited to data aggregation. Fusion’s new SQL Aggregation Engine has more power and flexibility than Fusion’s legacy aggregation engine.
* [**Legacy aggregations.**](/docs/4/fusion-ai/concepts/signals-and-aggregations/aggregations/legacy-aggregations) Deprecated. This aggregation approach available in prior Fusion releases is still available, though it is deprecated. [Aggregator functions](/docs/4/fusion-ai/concepts/signals-and-aggregations/aggregations/aggregator-functions) apply solely to legacy aggregations.

Aggregations are created automatically whenever you enable signals or recommendations. This topic explains how to create or modify aggregations individually. You can do this using the Fusion UI or the Jobs API.

<Accordion title="Create Aggregation Jobs">
  Aggregations are created automatically whenever you enable signals or recommendations. This topic explains how to create or modify aggregations individually. You can do this using the Fusion UI or the Jobs API.

  <LwTemplate />

  ## Creating an aggregation job

  An aggregation is a type of job. Aggregation jobs can be created or modified under **Collections** or using **Search** > **Jobs** in the Fusion UI.

  1. Navigate to **Jobs**.

       <img src="https://mintcdn.com/lucidworks/5yWZ-KtZuBe4Y_Fg/assets/images/4.0/aggregation-add-new0.png?fit=max&auto=format&n=5yWZ-KtZuBe4Y_Fg&q=85&s=808dd16839d2effe06180fa91a239d44" alt="Collections Jobs" width="243" height="139" data-path="assets/images/4.0/aggregation-add-new0.png" />
  2. Click **Add**.

     <Note>   Fusion 5.x.x supports only SQL aggregations. To avoid upgrade issues, Lucidworks recommends you use SQL aggregations in Fusion 4.x.x even though that release supports both regular (functional) aggregations and SQL aggregations.</Note>

       <img src="https://mintcdn.com/lucidworks/5yWZ-KtZuBe4Y_Fg/assets/images/4.0/aggregation-add-new1.png?fit=max&auto=format&n=5yWZ-KtZuBe4Y_Fg&q=85&s=bf64ab3e19c5e66eef667a3eef8b09d8" alt="New aggregation" width="644" height="231" data-path="assets/images/4.0/aggregation-add-new1.png" />
  3. Select **SQL Aggregation**.

     The New Job Configuration panel appears.

       <img src="https://mintcdn.com/lucidworks/5yWZ-KtZuBe4Y_Fg/assets/images/4.0/aggregation-add-new2.png?fit=max&auto=format&n=5yWZ-KtZuBe4Y_Fg&q=85&s=73b18cbb9d4e9ba2d1a9c6c20966f9d1" alt="New aggregation" width="884" height="423" data-path="assets/images/4.0/aggregation-add-new2.png" />
  4. Enter an arbitrary Spark job ID.
  5. Enter the name of the signals collection to be aggregated.

     <Note>   Be sure to specify the signals collection (usually `<primarycollectionname>_signals`), not the primary (`<primarycollectionname>`) collection.</Note>
  6. Configure the aggregation parameters as needed.
     1. For SQL aggregation jobs, see the [parameter list](/docs/4/fusion-ai/reference/jobs/parameterized-sql-aggregation) here for more information.
  7. Click **Save**.

     The new aggregation job appears in the jobs list.  Now you can run it or schedule the job.
</Accordion>
