Elasticsearch Server: Second Edition

From creating your own index structure through to cluster monitoring and troubleshooting, this is the complete guide to implementing the ElasticSearch search engine on your own websites. Packed with real-life examples.

Elasticsearch Server: Second Edition

Starting
Rafał Kuć, Marek Rogoziński

From creating your own index structure through to cluster monitoring and troubleshooting, this is the complete guide to implementing the ElasticSearch search engine on your own websites. Packed with real-life examples.
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free sample

Book Details

ISBN 139781783980529
Paperback428 pages

About This Book

  • Learn about the fascinating functionalities of ElasticSearch like data indexing, data analysis, and dynamic mapping
  • Fine-tune ElasticSearch and understand its metrics using its API and available tools, and see how it behaves in complex searches
  • A hands-on tutorial that walks you through all the features of ElasticSearch in an easy-to-understand way, with examples that will help you become an expert in no time

Who This Book Is For

If you are a web developer or a user who wants to learn more about Elasticsearch, then this is the book for you. You do not need to know anything about Elasticsearch, Java, or Apache Lucene in order to use this book, though basic knowledge of databases and queries is required.

Table of Contents

Chapter 1: Getting Started with the Elasticsearch Cluster
Full-text searching
The basics of Elasticsearch
Installing and configuring your cluster
Manipulating data with the REST API
Searching with the URI request query
Summary
Chapter 2: Indexing Your Data
Elasticsearch indexing
Mappings configuration
Batch indexing to speed up your indexing process
Extending your index structure with additional internal information
Introduction to segment merging
Introduction to routing
Summary
Chapter 3: Searching Your Data
Querying Elasticsearch
Understanding the querying process
Basic queries
Compound queries
Filtering your results
Highlighting
Validating your queries
Sorting data
Query rewrite
Summary
Chapter 4: Extending Your Index Structure
Indexing tree-like structures
Indexing data that is not flat
Using nested objects
Using the parent-child relationship
Modifying your index structure with the update API
Summary
Chapter 5: Make Your Search Better
An introduction to Apache Lucene scoring
Scripting capabilities of Elasticsearch
Searching content in different languages
Influencing scores with query boosts
When does index-time boosting make sense?
Words with the same meaning
Understanding the explain information
Summary
Chapter 6: Beyond Full-text Searching
Aggregations
Faceting
Using suggesters
Percolator
Handling files
Geo
The scroll API
The terms filter
Summary
Chapter 7: Elasticsearch Cluster in Detail
Node discovery
The gateway and recovery modules
Preparing Elasticsearch cluster for high query and indexing throughput
Templates and dynamic templates
Summary
Chapter 8: Administrating Your Cluster
The Elasticsearch time machine
Monitoring your cluster's state and health
Controlling cluster rebalancing
Controlling the shard and replica allocation
Warming up
Index aliasing and using it to simplify your everyday work
Elasticsearch plugins
The update settings API
Summary

What You Will Learn

  • Configure and create your own index
  • Set up an analysis chain and handle multilingual data
  • Use the Elasticsearch query DSL to make all kinds of queries
  • Utilize filters efficiently and ensure they do not affect performance
  • Implement autocomplete functionality
  • Employ faceting, the aggregations framework, and similar functionalities to get more from your search and improve your clients' search experience
  • Monitor your cluster state and health by using Elasticsearch APIs as well as third-party monitoring solutions
  • Learn what gateway and discovery modules are, and how to properly configure them
  • Control primary shards and replica rebalancing

In Detail

This book begins by introducing the most commonly used Elasticsearch server functionalities, from creating your own index structure, through querying, faceting, and aggregations, and ends with cluster monitoring and problem diagnosis. As you progress through the book, you will cover topics such as starting Elasticsearch, creating a new index, and designing its proper structure. After that, you'll read about the query API that Elasticsearch exposes, as well as about filtering capabilities, aggregations, and faceting. Last but not least, you will get to know how to find similar documents by using similar functionalities and how to implement application alerts by using the prospective search functionality called percolator. Some advanced topics such as shard allocation control, gateway configuration, and how to use the discovery module will also be discussed. This book will also show you the possibilities of cluster state and health monitoring as well as how to use third-party tools.

Authors

Table of Contents

Chapter 1: Getting Started with the Elasticsearch Cluster
Full-text searching
The basics of Elasticsearch
Installing and configuring your cluster
Manipulating data with the REST API
Searching with the URI request query
Summary
Chapter 2: Indexing Your Data
Elasticsearch indexing
Mappings configuration
Batch indexing to speed up your indexing process
Extending your index structure with additional internal information
Introduction to segment merging
Introduction to routing
Summary
Chapter 3: Searching Your Data
Querying Elasticsearch
Understanding the querying process
Basic queries
Compound queries
Filtering your results
Highlighting
Validating your queries
Sorting data
Query rewrite
Summary
Chapter 4: Extending Your Index Structure
Indexing tree-like structures
Indexing data that is not flat
Using nested objects
Using the parent-child relationship
Modifying your index structure with the update API
Summary
Chapter 5: Make Your Search Better
An introduction to Apache Lucene scoring
Scripting capabilities of Elasticsearch
Searching content in different languages
Influencing scores with query boosts
When does index-time boosting make sense?
Words with the same meaning
Understanding the explain information
Summary
Chapter 6: Beyond Full-text Searching
Aggregations
Faceting
Using suggesters
Percolator
Handling files
Geo
The scroll API
The terms filter
Summary
Chapter 7: Elasticsearch Cluster in Detail
Node discovery
The gateway and recovery modules
Preparing Elasticsearch cluster for high query and indexing throughput
Templates and dynamic templates
Summary
Chapter 8: Administrating Your Cluster
The Elasticsearch time machine
Monitoring your cluster's state and health
Controlling cluster rebalancing
Controlling the shard and replica allocation
Warming up
Index aliasing and using it to simplify your everyday work
Elasticsearch plugins
The update settings API
Summary

Book Details

ISBN 139781783980529
Paperback428 pages
Read More