Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Advanced Elasticsearch 7.0

You're reading from  Advanced Elasticsearch 7.0

Product type Book
Published in Aug 2019
Publisher Packt
ISBN-13 9781789957754
Pages 560 pages
Edition 1st Edition
Languages
Author (1):
Wai Tak Wong Wai Tak Wong
Profile icon Wai Tak Wong

Table of Contents (25) Chapters

Preface Section 1: Fundamentals and Core APIs
Overview of Elasticsearch 7 Index APIs Document APIs Mapping APIs Anatomy of an Analyzer Search APIs Section 2: Data Modeling, Aggregations Framework, Pipeline, and Data Analytics
Modeling Your Data in the Real World Aggregation Frameworks Preprocessing Documents in Ingest Pipelines Using Elasticsearch for Exploratory Data Analysis Section 3: Programming with the Elasticsearch Client
Elasticsearch from Java Programming Elasticsearch from Python Programming Section 4: Elastic Stack
Using Kibana, Logstash, and Beats Working with Elasticsearch SQL Working with Elasticsearch Analysis Plugins Section 5: Advanced Features
Machine Learning with Elasticsearch Spark and Elasticsearch for Real-Time Analytics Building Analytics RESTful Services Other Books You May Enjoy

Aggregation query syntax

The following code block in regular expression syntax demonstrates the basic structure of the aggregation query syntax:

"aggs":{
"name_1": {
"type": { body }
[,"aggs" : {[sub aggregation]+}]?
}
[,"name_2":{...}]*
}

We can have multiple aggregations in one shot. In addition, if we have to use complex aggregation logic to solve a problem, we may use sub-aggregations. The aggs keyword is the short form of the aggregations keyword. The name_1 word is the name of the aggregation. Elasticsearch supports more than one aggregation on the same level, such as name_2. The type word is used to define the type of the aggregation such as terms, stats, and range. The body word specifies the criteria of the aggregation.

One of the powerful features of aggregations is the ability to embed aggregations...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}