Get Started. It's Free
or sign up with your email address
Aggregations by Mind Map: Aggregations

1. rules

1.1. define them in the same JSON request as queries

1.2. run on the results of your query

1.3. further filter down the results of the query

2. structure

2.1. Untitled

2.2. Untitled

3. aggregations run on query results

3.1. Untitled

4. filters and aggregations

4.1. post filter

4.1.1. post filter runs after the query and does not affect aggregations

4.1.2. Untitled

4.1.3. Untitled

4.2. filtered query

4.2.1. a filter wrapped in a filtered query runs first and restricts both results and aggregations

4.2.2. Untitled

4.2.3. Untitled

4.2.4. Untitled

5. categories

5.1. metric aggregations

5.1.1. metric aggregations and typical use cases Untitled

5.1.2. get stats for the number of event attendees build a script field put a typically small piece of code that returns a value for each document Untitled

5.1.3. only ask for one of those statistics get the average number of event attendees Untitled

5.1.4. extended_stats query Untitled reply Untitled

5.1.5. approximate statistics percentiles query reply cardinality query reply

5.2. multi-bucket aggregations

5.2.1. major types Untitled

5.2.2. use cases Untitled

5.2.3. terms aggregations terms def: frequency of each term in your documents by default, order is by their count, descending e.g. figuring out things like frequent posters on a blog or popular tags significant terms def: give back the difference between the occurrence of a term in the whole index and its occurrence in your query results e.g. suggesting terms that are significant for the search context result accuracy scenario improve by increasing shard_size how accurate results are

5.2.4. range aggregations manually define each range

5.2.5. histogram aggregations define a fixed interval

5.2.6. nested, reverse nested and children aggregations result grouping Untitled query Untitled reply Untitled Untitled

5.2.7. geo distance and geohash grid aggregations

5.3. single-bucket aggregations

5.3.1. global Untitled

5.3.2. filter and filters aggregations Untitled

5.3.3. missing