![](https://csdnimg.cn/release/download_crawler_static/9890984/bg1.jpg)
Contents
![](https://csdnimg.cn/release/download_crawler_static/9890984/bg2.jpg)
1: Introduction to Elasticsearch
b'Chapter 1: Introduction to Elasticsearch'
b'Basic concepts of Elasticsearch'
b'Interacting with Elasticsearch'
b'How does search work?'
b'Scalability and availability'
b'Summary'
2: Setting Up Elasticsearch and Kibana
b'Chapter 2: Setting Up Elasticsearch and Kibana'
b'Installing Elasticsearch'
b'Installing Kibana'
b'Query format used in this book (Kibana Console)'
b'Using cURL or Postman'
b'Health of the cluster'
b'Summary'
3: Modeling Your Data and Document Relations
b'Chapter 3: Modeling Your Data and Document Relations'
b'Mapping'
b'Difference between full-text search and exact match'
b'Core data types'
b'Complex data types'
b'Geo data type'
b'Specialized data type'
b'Mapping the same field with different mappings'
b'Handling relations between different document types'
b'Routing'
b'Summary'
4: Indexing and Updating Your Data
b'Chapter 4: Indexing and Updating Your Data'
b'Indexing your data'
b'Updating your data'
b'Using Kibana to discover\xc3\x82\xc2\xa0'
b'Using Elasticsearch in your application'
b'Concurrency'
b'Translog'
b'Primary and Replica shards'
b'Summary'
![](https://csdnimg.cn/release/download_crawler_static/9890984/bg3.jpg)
5: Organizing Your Data and Bulk Data Ingestion
b'Chapter 5: Organizing Your Data and Bulk Data Ingestion'
b'Bulk operations'
b'Reindex API'
b'Ingest Node'
b'Organizing your data'
b'Shrink API'
b'Summary'
6: All About Search
b'Chapter 6: All About Search'
b'Different types of queries'
b'Sample data'
b'Querying Elasticsearch'
b'Relevance'
b'Searching for same value across multiple fields\xc3\x82\xc2\xa0'
b'Caching'
b'Summary'
7: More Than a Search Engine (Geofilters, Autocomplete, and More)
b'Chapter 7: More Than a Search Engine (Geofilters,
Autocomplete, and More)'
b'Sample data'
b'Correcting typos and spelling mistakes'
b'Making suggestions based on the user input'
b'Highlighting'
b'Handling document relations using parent-child'
b'Handling document relations using nested\xc3\x82\xc2\xa0'
b'Scripting'
b'Post Filter'
b'Reverse search using the percolate query'
b'Geo and Spatial Filtering'
b'Multi search'
b'Search templates'
b'Querying Elasticsearch from Java application'
b'Summary'
8: How to Slice and Dice Your Data Using Aggregations
b'Chapter 8: How to Slice and Dice Your Data Using Aggregations'
b'Aggregation basics'
![](https://csdnimg.cn/release/download_crawler_static/9890984/bg4.jpg)
b'Types of aggregations'
b'Using\xc3\x82\xc2\xa0Kibana to visualize aggregations'
b'Caching'
b'Doc values'
b'Field data\xc3\x82\xc2\xa0'
b'Summary'
9: Production and Beyond
b'Chapter 9: Production and Beyond'
b'Configuring Elasticsearch'
b'Multinode\xc3\x82\xc2\xa0cluster'
b'How nodes discover each other'
b'X-Pack'
b'Monitoring'
b'Thread pools'
b'Elasticsearch server logs'
b'Summary'
10: Exploring Elastic Stack (Elastic Cloud, Security, Graph, and
Alerting)
b'Chapter 10: Exploring Elastic Stack (Elastic Cloud, Security,
Graph, and Alerting)'
b'Elastic Cloud'
b'Security'
b'Graph'
b'Alerting'
b'Summary'
![](https://csdnimg.cn/release/download_crawler_static/9890984/bg5.jpg)
Chapter 1. Introduction to Elasticsearch
In this chapter, we will focus on the basic concepts of Elasticsearch. We will
start by explaining the building blocks and then discuss how to create, modify
and query in Elasticsearch. Getting started with Elasticsearch is very easy;
most operations come with default settings. The default settings can be
overridden when you need more advanced features.Â
I first started using Elasticsearch in 2012 as a backend search engine to power
our Analytics dashboards. It has been more than five years, and I never
looked for any other technologies for our search needs. Elasticsearch is much
more than just a search engine; it supports complex aggregations, geo filters,
and the list goes on. Best of all, you can run all your queries at a speed you
have never seen before. To understand how this magic happens, we will
briefly discuss how Elasticsearch works internally and then discuss how to
talk to Elasticsearch. Knowing how it works internally will help you
understand its strengths and limitations. Elasticsearch, like any other open
source technology, is very rapidly evolving, but the core fundamentals that
power Elasticsearch don't change. By the end of this chapter, we will have
covered the following:
Basic concepts of Elasticsearch
How to interact with Elasticsearch
How to create, read, update, and delete
How does search work
Availability and horizontal scalability
Failure handling
Strengths and limitations