Elasticsearch 5.x Cookbook - Third Edition

Over 170 advanced recipes to search, analyze, deploy, manage, and monitor data effectively with Elasticsearch 5.x
Preview in Mapt

Elasticsearch 5.x Cookbook - Third Edition

Alberto Paro

1 customer reviews
Over 170 advanced recipes to search, analyze, deploy, manage, and monitor data effectively with Elasticsearch 5.x

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$30.80
RRP $43.99
Save 29%
Print + eBook
$54.99
RRP $54.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$30.80
$54.99
$29.99 p/m after trial
RRP $43.99
RRP $54.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Elasticsearch 5.x Cookbook - Third Edition Book Cover
Elasticsearch 5.x Cookbook - Third Edition
$ 43.99
$ 30.80
Elasticsearch: A Complete Guide Book Cover
Elasticsearch: A Complete Guide
$ 79.99
$ 56.00
Buy 2 for $35.00
Save $88.98
Add to Cart

Book Details

ISBN 139781786465580
Paperback696 pages

Book Description

ElasticSearch is a Lucene-based distributed search server that allows users to index and search unstructured content with petabytes of data. This book is your one-stop guide to master the complete ElasticSearch ecosystem.

We’ll guide you through comprehensive recipes on what’s new in Elasticsearch 5.x, showing you how to create complex queries and analytics, and perform index mapping, aggregation, and scripting. Further on, you will explore the modules of Cluster and Node monitoring and see ways to back up and restore a snapshot of an index.

You will understand how to install Kibana to monitor a cluster and also to extend Kibana for plugins. Finally, you will also see how you can integrate your Java, Scala, Python, and big data applications such as Apache Spark and Pig with ElasticSearch, and add enhanced functionalities with custom plugins.

By the end of this book, you will have an in-depth knowledge of the implementation of the Elasticsearch architecture and will be able to manage data efficiently and effectively with Elasticsearch.

Table of Contents

Chapter 1: Getting Started
Introduction
Understanding node and cluster
Understanding node services
Managing your data
Understanding cluster, replication, and sharding
Communicating with Elasticsearch
Using the HTTP protocol
Using the native protocol
Chapter 2: Downloading and Setup
Introduction
Downloading and installing Elasticsearch
Setting up networking
Setting up a node
Setting up for Linux systems
Setting up different node types
Setting up a client node
Setting up an ingestion node
Installing plugins in Elasticsearch
Installing plugins manually
Removing a plugin
Changing logging settings
Setting up a node via Docker
Chapter 3: Managing Mappings
Introduction
Using explicit mapping creation
Mapping base types
Mapping arrays
Mapping an object
Mapping a document
Using dynamic templates in document mapping
Managing nested objects
Managing child document
Adding a field with multiple mapping
Mapping a GeoPoint field
Mapping a GeoShape field
Mapping an IP field
Mapping an attachment field
Adding metadata to a mapping
Specifying a different analyzer
Mapping a completion field
Chapter 4: Basic Operations
Introduction
Creating an index
Deleting an index
Opening/closing an index
Putting a mapping in an index
Getting a mapping
Reindexing an index
See also
Refreshing an index
Flushing an index
ForceMerge an index
Shrinking an index
Checking if an index or type exists
Managing index settings
Using index aliases
Rollover an index
Indexing a document
Getting a document
Deleting a document
Updating a document
Speeding up atomic operations (bulk operations)
Speeding up GET operations (multi GET)
Chapter 5: Search
Introduction
Executing a search
Sorting results
Highlighting results
Executing a scrolling query
Using the search_after functionality
Returning inner hits in results
Suggesting a correct query
Counting matched results
Explaining a query
Query profiling
Deleting by query
Updating by query
Matching all the documents
Using a boolean query
Chapter 6: Text and Numeric Queries
Introduction
Using a term query
Using a terms query
Using a prefix query
Using a wildcard query
Using a regexp query
Using span queries
Using a match query
Using a query string query
Using a simple query string query
Using the range query
The common terms query
Using IDs query
Using the function score query
Using the exists query
Using the template query
Chapter 7: Relationships and Geo Queries
Introduction
Using the has_child query
Using the has_parent query
Using nested queries
Using the geo_bounding_box query
Using the geo_polygon query
Using the geo_distance query
Using the geo_distance_range query
Chapter 8: Aggregations
Introduction
Executing an aggregation
Executing stats aggregations
Executing terms aggregation
Executing significant terms aggregation
Executing range aggregations
Executing histogram aggregations
Executing date histogram aggregations
Executing filter aggregations
Executing filters aggregations
Executing global aggregations
Executing geo distance aggregations
Executing children aggregations
Executing nested aggregations
Executing top hit aggregations
Executing a matrix stats aggregation
Executing geo bounds aggregations
Executing geo centroid aggregations
Chapter 9: Scripting
Introduction
Painless scripting
Installing additional script plugins
Managing scripts
Sorting data using scripts
Computing return fields with scripting
Filtering a search via scripting
Using scripting in aggregations
Updating a document using scripts
Reindexing with a script
Chapter 10: Managing Clusters and Nodes
Introduction
Controlling cluster health via an API
Controlling cluster state via an API
Getting nodes information via API
Getting node statistics via the API
Using the task management API
Hot thread API
Managing the shard allocation
Monitoring segments with the segment API
Cleaning the cache
Chapter 11: Backup and Restore
Introduction
Managing repositories
Executing a snapshot
Restoring a snapshot
Setting up a NFS share for backup
Reindexing from a remote cluster
Chapter 12: User Interfaces
Introduction
Installing and using Cerebro
Installing Kibana and X-Pack
Managing Kibana dashboards
Monitoring with Kibana
Using Kibana dev-console
Visualizing data with Kibana
Installing Kibana plugins
Generating graph with Kibana
Chapter 13: Ingest
Introduction
Pipeline definition
Put an ingest pipeline
Get an ingest pipeline
Delete an ingest pipeline
Simulate an ingest pipeline
Built-in processors
Grok processor
Using the ingest attachment plugin
Using the ingest GeoIP plugin
Chapter 14: Java Integration
Introduction
Creating a standard Java HTTP client
Creating an HTTP Elasticsearch client
Creating a native client
Managing indices with the native client
Managing mappings
Managing documents
Managing bulk actions
Building a query
Executing a standard search
Executing a search with aggregations
Executing a scroll search
Chapter 15: Scala Integration
Introduction
Creating a client in Scala
Managing indices
Managing mappings
Managing documents
Executing a standard search
Executing a search with aggregations
Chapter 16: Python Integration
Introduction
Creating a client
Managing indices
Managing mappings include the mapping
Managing documents
Executing a standard search
Executing a search with aggregations
Chapter 17: Plugin Development
Introduction
Creating a plugin
Creating an analyzer plugin
Creating a REST plugin
Creating a cluster action
Creating an ingest plugin
Chapter 18: Big Data Integration
Introduction
Installing Apache Spark
Indexing data via Apache Spark
Indexing data with meta via Apache Spark
Reading data with Apache Spark
Reading data using SparkSQL
Indexing data with Apache Pig

What You Will Learn

  • Choose the best ElasticSearch cloud topology to deploy and power it up with external plugins
  • Develop tailored mapping to take full control of index steps
  • Build complex queries through managing indices and documents
  • Optimize search results through executing analytics aggregations
  • Monitor the performance of the cluster and nodes
  • Install Kibana to monitor cluster and extend Kibana for plugins.
  • Integrate ElasticSearch in Java, Scala, Python and Big Data applications

Authors

Table of Contents

Chapter 1: Getting Started
Introduction
Understanding node and cluster
Understanding node services
Managing your data
Understanding cluster, replication, and sharding
Communicating with Elasticsearch
Using the HTTP protocol
Using the native protocol
Chapter 2: Downloading and Setup
Introduction
Downloading and installing Elasticsearch
Setting up networking
Setting up a node
Setting up for Linux systems
Setting up different node types
Setting up a client node
Setting up an ingestion node
Installing plugins in Elasticsearch
Installing plugins manually
Removing a plugin
Changing logging settings
Setting up a node via Docker
Chapter 3: Managing Mappings
Introduction
Using explicit mapping creation
Mapping base types
Mapping arrays
Mapping an object
Mapping a document
Using dynamic templates in document mapping
Managing nested objects
Managing child document
Adding a field with multiple mapping
Mapping a GeoPoint field
Mapping a GeoShape field
Mapping an IP field
Mapping an attachment field
Adding metadata to a mapping
Specifying a different analyzer
Mapping a completion field
Chapter 4: Basic Operations
Introduction
Creating an index
Deleting an index
Opening/closing an index
Putting a mapping in an index
Getting a mapping
Reindexing an index
See also
Refreshing an index
Flushing an index
ForceMerge an index
Shrinking an index
Checking if an index or type exists
Managing index settings
Using index aliases
Rollover an index
Indexing a document
Getting a document
Deleting a document
Updating a document
Speeding up atomic operations (bulk operations)
Speeding up GET operations (multi GET)
Chapter 5: Search
Introduction
Executing a search
Sorting results
Highlighting results
Executing a scrolling query
Using the search_after functionality
Returning inner hits in results
Suggesting a correct query
Counting matched results
Explaining a query
Query profiling
Deleting by query
Updating by query
Matching all the documents
Using a boolean query
Chapter 6: Text and Numeric Queries
Introduction
Using a term query
Using a terms query
Using a prefix query
Using a wildcard query
Using a regexp query
Using span queries
Using a match query
Using a query string query
Using a simple query string query
Using the range query
The common terms query
Using IDs query
Using the function score query
Using the exists query
Using the template query
Chapter 7: Relationships and Geo Queries
Introduction
Using the has_child query
Using the has_parent query
Using nested queries
Using the geo_bounding_box query
Using the geo_polygon query
Using the geo_distance query
Using the geo_distance_range query
Chapter 8: Aggregations
Introduction
Executing an aggregation
Executing stats aggregations
Executing terms aggregation
Executing significant terms aggregation
Executing range aggregations
Executing histogram aggregations
Executing date histogram aggregations
Executing filter aggregations
Executing filters aggregations
Executing global aggregations
Executing geo distance aggregations
Executing children aggregations
Executing nested aggregations
Executing top hit aggregations
Executing a matrix stats aggregation
Executing geo bounds aggregations
Executing geo centroid aggregations
Chapter 9: Scripting
Introduction
Painless scripting
Installing additional script plugins
Managing scripts
Sorting data using scripts
Computing return fields with scripting
Filtering a search via scripting
Using scripting in aggregations
Updating a document using scripts
Reindexing with a script
Chapter 10: Managing Clusters and Nodes
Introduction
Controlling cluster health via an API
Controlling cluster state via an API
Getting nodes information via API
Getting node statistics via the API
Using the task management API
Hot thread API
Managing the shard allocation
Monitoring segments with the segment API
Cleaning the cache
Chapter 11: Backup and Restore
Introduction
Managing repositories
Executing a snapshot
Restoring a snapshot
Setting up a NFS share for backup
Reindexing from a remote cluster
Chapter 12: User Interfaces
Introduction
Installing and using Cerebro
Installing Kibana and X-Pack
Managing Kibana dashboards
Monitoring with Kibana
Using Kibana dev-console
Visualizing data with Kibana
Installing Kibana plugins
Generating graph with Kibana
Chapter 13: Ingest
Introduction
Pipeline definition
Put an ingest pipeline
Get an ingest pipeline
Delete an ingest pipeline
Simulate an ingest pipeline
Built-in processors
Grok processor
Using the ingest attachment plugin
Using the ingest GeoIP plugin
Chapter 14: Java Integration
Introduction
Creating a standard Java HTTP client
Creating an HTTP Elasticsearch client
Creating a native client
Managing indices with the native client
Managing mappings
Managing documents
Managing bulk actions
Building a query
Executing a standard search
Executing a search with aggregations
Executing a scroll search
Chapter 15: Scala Integration
Introduction
Creating a client in Scala
Managing indices
Managing mappings
Managing documents
Executing a standard search
Executing a search with aggregations
Chapter 16: Python Integration
Introduction
Creating a client
Managing indices
Managing mappings include the mapping
Managing documents
Executing a standard search
Executing a search with aggregations
Chapter 17: Plugin Development
Introduction
Creating a plugin
Creating an analyzer plugin
Creating a REST plugin
Creating a cluster action
Creating an ingest plugin
Chapter 18: Big Data Integration
Introduction
Installing Apache Spark
Indexing data via Apache Spark
Indexing data with meta via Apache Spark
Reading data with Apache Spark
Reading data using SparkSQL
Indexing data with Apache Pig

Book Details

ISBN 139781786465580
Paperback696 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Elasticsearch: A Complete Guide Book Cover
Elasticsearch: A Complete Guide
$ 79.99
$ 56.00
Learning Elasticsearch Book Cover
Learning Elasticsearch
$ 39.99
$ 28.00
Fast Data Processing Systems with SMACK Stack Book Cover
Fast Data Processing Systems with SMACK Stack
$ 39.99
$ 28.00
Modern Python Cookbook Book Cover
Modern Python Cookbook
$ 39.99
$ 28.00
Learning Apache Cassandra - Second Edition Book Cover
Learning Apache Cassandra - Second Edition
$ 35.99
$ 25.20
Spring Microservices Book Cover
Spring Microservices
$ 39.99
$ 28.00