Skip to product information
Elasticsearch Practical Guide
Elasticsearch Practical Guide
Description
Book Introduction
"ElasticSearch Practical Guide" covers the entirety of ElasticSearch, the leading open-source search engine.
However, rather than simply explaining the features of Elasticsearch in a fragmentary manner, we tried to generously explain how to use the Korean morphological analyzer to suit the Korean search market, the principles of implementing Korean auto-completion, and even the know-how for operating large-scale clusters.
I hope that through this book, you will gain the know-how and Korean processing techniques that the authors have acquired over many years of building and operating search systems.
  • You can preview some of the book's contents.
    Preview

index
▣ Chapter 1 Understanding the Search System
1.1 Understanding the Search System
__1.1.1 What is a search system?
__1.1.2 Components of the search system
__1.1.3 Differences from relational databases
1.2 Search System and Elasticsearch
__1.2.1 Why Elasticsearch is Powerful
__1.2.2 Elasticsearch's weaknesses
1.3 Building a Practice Environment
__1.3.1 Installing Elasticsearch
__1.3.2 Installing Kibana
__1.3.3 Troubleshooting Environment Setup

▣ Chapter 2: Elasticsearch Overview
2.1 Concepts that make up Elasticsearch
__2.1.1 Basic Terminology
__2.1.2 Types of nodes
__2.1.3 Clusters, Nodes, and Shards
2.2 Main APIs provided by Elasticsearch
__2.2.1 Index Management API
__2.2.2 Document Management API
__2.2.3 Search API
__2.2.4 Aggregation API

▣ Chapter 3 Data Modeling
3.1 Understanding the Mapping API
__3.1.1 Creating a Mapping Index
__3.1.2 Check mapping
__3.1.3 Mapping Parameters
3.2 Meta Field
__3.2.1 _index meta field
__3.2.2 _type meta field
__3.2.3 _id meta field
__3.2.4 _uid meta field
__3.2.5 _source meta field
__3.2.6 _all meta field
__3.2.7 _routing meta field
3.3 Field Data Types
__3.3.1 Keyword data type
__3.3.2 Text data type
__3.3.3 Array data type
__3.3.4 Numeric data type
__3.3.5 Date data type
__3.3.6 Range data type
__3.3.7 Boolean data type
__3.3.8 Geo-Point Data Type
__3.3.9 IP data type
__3.3.10 Object data type
__3.3.11 Nested data types
3.4 Elasticsearch Analyzer
__3.4.1 Text Analysis Overview
__3.4.2 Inverted index structure
__3.4.3 Structure of the analyzer
__3.4.4 Preprocessing Filter
__3.4.5 Tokenizer Filter
__3.4.6 Token Filter
__3.4.7 Dictionary of Synonyms
3.5 Understanding the Document API
__3.5.1 Document Parameters
__3.5.2 Index API
__3.5.3 Get API
__3.5.4 Delete API
__3.5.5 Delete By Query API
__3.5.6 Update API
__3.5.7 Bulk API
__3.5.8 Reindex API

▣ Chapter 4 Data Retrieval
4.1 Search API
__4.1.1 How to express a search query
__4.1.2 URI Search
__4.1.3 Retrieving the Request Body
4.2 Understanding Query DSL
__4.2.1 Structure of Query DSL queries
__4.2.2 Query DSL Queries and Filters
__4.2.3 Key parameters of Query DSL
4.3 Key queries in Query DSL
__4.3.1 Match All Query
__4.3.2 Match Query
__4.3.3 Multi-Match Query
__4.3.4 Term Query
__4.3.5 Boolean Query
__4.3.6 Query String
__4.3.7 Prefix Query
__4.3.8 Exists Query
__4.3.9 Wildcard Query
__4.3.10 Nested Queries
4.4 Additional Search APIs
__4.4.1 Settings for efficient search
__4.4.2 Search Shards API
__4.4.3 Multi Search API
__4.4.4 Count API
__4.4.5 Validate API
__4.4.6 Explain API
__4.4.7 Profile API

▣ Chapter 5 Data Aggregation
5.1 Aggregation
__5.1.1 Elasticsearch and Data Analysis
__5.1.2 Technologies used by Elasticsearch for aggregation
__5.1.3 Examining the Practice Data
__5.1.4 Understanding the Aggregation API
5.2 Metric Aggregation
__5.2.1 Aggregate aggregation
__5.2.2 Average Aggregation
__5.2.3 Minimum Aggregation
__5.2.4 Maximum aggregation
__5.2.5 Counting
__5.2.6 Statistical Aggregation
__5.2.7 Extended Statistics Aggregation
__5.2.8 Cardinality Aggregation
__5.2.9 Percentile Aggregation
__5.2.10 Terrain Boundary Aggregation
__5.2.11 Terrain-centric aggregation
5.3 Bucket Aggregation
__5.3.1 Range Aggregation
__5.3.2 Date Range Aggregation
__5.3.3 Histogram Aggregation
__5.3.4 Date Histogram Aggregation
__5.3.5 Terms Aggregation
5.4 Pipeline Aggregation
__5.4.1 Sibling Aggregation
__5.4.2 Parent Aggregation
5.5 Aggregate operations provided as approximations
__5.5.1 Aggregation Operations and Accuracy
__5.5.2 Difficulties of Aggregation Operations in a Distributed Environment

▣ Chapter 6 Advanced Search
6.1 Using the Korean Morphological Analyzer
__6.1.1 Eunjeonhannyeon morphological analyzer
__6.1.2 Nori Morphological Analyzer
____6.1.2.1 nori_tokenizer tokenizer
__6.1.3 Twitter Morphological Analyzer
6.2 Highlighting search results
6.3 Adding fields dynamically using scripts
6.4 Providing dynamic queries using search templates
6.5 Keeping the index up to date using aliases
6.6 Backup and Recovery Using Snapshots

▣ Chapter 7 Korean Search Extension
7.1 Introducing the Suggest API
__7.1.1 Term Suggest API
__7.1.2 Completion Suggest API
7.2 Spell Checker
__7.2.1 Correcting typos using the Term Suggester API
__7.2.2 Korean-English/English-Korean typo correction
7.3 Korean keyword auto-completion
__7.3.1 Korean auto-completion using the Completion Suggest API
__7.3.2 Problems with Korean auto-completion using the Suggest API
__7.3.3 Implementing Korean Auto-Complete Directly
7.4 Java Cafe Plugin
__7.4.1 Understanding Korean Unicode
__7.4.2 Korean character analysis filter (javacafe_jamo)
__7.4.3 Korean initial consonant analysis filter (javacafe_chosung)
__7.4.4 English-Korean typo conversion filter (javacafe_eng2kor)
__7.4.5 Korean-English typo conversion filter (javacafe_kor2eng)
__7.4.6 Spelling Check Filter (javacafe_spell)

▣ Chapter 8 Elasticsearch Client
8.1 Understanding the Elasticsearch Client
__8.1.1 Introducing the Client Module
__8.1.2 Java Client Module
8.2 Transport Client
__8.2.1 Transport Client Connection
__8.2.2 Using the Mapping API
__8.2.3 Using the Document API
__8.2.4 Using the Search API
__8.2.5 Using the Aggregation API
__8.2.6 Using the Query DSL API
8.3 High Level REST Client
__8.3.1 REST Client Connection
__8.3.2 Using the Mapping API
__8.3.3 Using the Document API
__8.3.4 Using the Search API

▣ Chapter 9: Elasticsearch and Lucene
9.1 Looking at Components from a Cluster Perspective
__9.1.1 Cluster
__9.1.2 Node
__9.1.3 Index
__9.1.4 Document
__9.1.5 Shard
__9.1.6 Replica
__9.1.7 Segment
9.2 Elasticsearch Shards vs.
Lucene Index
9.3 Why Elasticsearch Provides Near Real-Time Search
__9.3.1 Default behavior of segments when indexing
__9.3.2 Segment Invariance
__9.3.3 Segment Immutability and Updates
__9.3.4 Flush, Commit, and Merge for Lucene
__9.3.5 Refresh, Flush, and Optimize APIs for Elasticsearch
__9.3.6 Elasticsearch and NRT (Near Real-Time)
9.4 Translog's Secrets for High Availability
__9.4.1 Translog operation sequence
__9.4.2 Why Translog Exists
9.5.
Elasticsearch Shard Optimization
__9.5.1 Why can't I change the number of shards during operation?
__9.5.2 What is the appropriate number of replica shards?
__9.5.3 What is the maximum number of shards that can be operated in a cluster?
__9.5.4 What is the maximum number of documents that can be created in one index?

▣ Chapter 10: System Optimization for High-Volume Processing
10.1 Node Execution Environment and JVM Options
__10.1.1 Elasticsearch Release Notes
__10.1.2 Why you must use Java 8 or higher when running
__10.1.3 Why you should always use the latest version of Elasticsearch
__10.1.4 JVM options provided by Java 8
__10.1.5 JVM options applied to Elasticsearch
10.2 Why you should keep your heap size under 32GB
__10.2.1 Elasticsearch and Heap Size
__10.2.2 Ordinary Object Pointer
__10.2.3 Compressed Ordinary Object Pointer
__10.2.4 Setting the heap size in Elasticsearch
__10.2.5 Using Compressed OOP in Elasticsearch
10.3 Elasticsearch and Virtual Memory
__10.3.1 Virtual Memory
__10.3.2 Virtual Memory for the JVM
__10.3.3 Setting vm.max_map_count for Elasticsearch
10.4 Memory Swapping in Distributed Environments
__10.4.1 Memory Swapping
__10.4.2 Why You Should Disable Swapping in Elasticsearch
10.5.
System Tuning Points
__10.5.1 Tunable Resources in Applications
__10.5.2 User-level tuning using the ulimit command
__10.5.3 Kernel-level tuning using the sysctl command
__10.5.4 Elasticsearch Node-Level Tuning

▣ Chapter 11 Real-time Monitoring for Failure Prevention
11.1 Cluster Health Check
__11.1.1 Cluster-level health check
__11.1.2 Index-level health check
__11.1.3 Shard-level health check
__11.1.4 Using Health Check
11.2 Querying Physical Cluster Status Information
__11.2.1 Cluster-level physical state query
__11.2.2 Node-level physical state query
11.3 Real-time monitoring of clusters
__11.3.1 Real-time monitoring at the cluster level
__11.3.2 Node-level real-time monitoring
__11.3.3 Real-time monitoring at the index level
11.4 Monitoring from the Console with the Cat API
__11.4.1 Differences between Cat API and REST API
__11.4.2 Cat API Common Parameters
__ 11.4.3 Calling the Cat API from the Console

▣ Chapter 12: Stable Cluster Operation Know-How
12.1 Understanding the Node Bootstrap Process
__ 12.1.1 Why a bootstrap process is necessary
__ 12.1.2 Following the bootstrap check process
12.2 Separating the Master Node and Data Node
__ 12.2.1 Types of Elasticsearch Nodes
__ 12.2.2 Why you should separate the master node and data nodes
__ 12.2.3 Preventing Cluster Split Brain Problems
12.3 Cluster Management API
__ 12.3.1 Changing environment settings at runtime (_cluster/settings API)
__ 12.3.2 Querying pending cluster change commands (_cluster/pending_tasks API)
__ 12.3.3 Checking for Highly Usage Threads (_nodes/hot_threads API)
__ 12.3.4 Moving shards between nodes (_cluster/reroute API)
__ 12.3.5 Querying Running Tasks (_tasks API)
__ 12.3.6 Management API Call Statistics (_nodes/usage API)
12.4 Key Checkpoints for Stable Cluster Operation
__ 12.4.1 Cluster Health Measurement
__ 12.4.2 Measuring Search Performance
__ 12.4.3 Index Performance Measurement
__ 12.4.4 HTTP Performance Measurement
__ 12.4.5 Measuring GC Performance
__ 12.4.6 Measuring Operating System Performance
__ 12.4.7 Measuring Thread Pool Status
__ 12.4.8 Measuring Cache Status

▣ Chapter 13: Cluster Performance Measurement
13.1 Benchmark Tools for Elasticsearch
__ 13.1.1 Lucene Benchmarking Utility
__ 13.1.2 Elasticsearch Rally
13.2 Cluster Load Testing Using Rally
__ 13.2.1 Rally Installation
__ 13.2.2 Rally Tracks Options
__ 13.2.3 Rally Cars Options
__ 13.2.4 Starting a Race
__ 13.2.5 Comparing Tournament Results
13.3 Performance Monitoring with Kibana
__ 13.3.1 Search Rate
__ 13.3.2 Search Latency
__ 13.3.3 Indexing Rate
__ 13.3.4 Indexing Latency

Detailed image
Detailed Image 1

Publisher's Review
★ What this book covers ★

◎ Establishment of a search system
- Elasticsearch features and main usage
- How to use the Korean morphological analyzer
- Principles of analysis of Korean consonants and vowels
- Korean keyword auto-completion (initial consonant search, alphabet search, typo correction)
- How to use Java clients

◎ Large-capacity cluster operation
- Design techniques for index and shard optimization
- System tuning points
- Know-how in operating large-capacity clusters
- Real-time monitoring to prevent failures
- Understanding the Node Bootstrap Process
- Measuring cluster performance using rally
GOODS SPECIFICS
- Date of issue: April 17, 2019
- Page count, weight, size: 708 pages | 188*240*29mm
- ISBN13: 9791158391485
- ISBN10: 115839148X

You may also like

카테고리