# Facets Vs Aggregations

From Elastic search in action pg no 181

The main difference between aggregations and facets is that you can’t nest multiple types of facets in Elasticsearch, which limits the possibilities for exploring your data.

Aggregations were born to remove this limit and allow you to get deeper insights from your documents.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nag-9-s.gitbook.io/elastic-search-notes/aggregations/facets-vs-aggregations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
