Book description
Over 170 advanced recipes to search, analyze, deploy, manage, and monitor data effectively with Elasticsearch 5.x
About This Book
Deploy and manage simple Elasticsearch nodes as well as complex cluster topologies
Write native plugins to extend the functionalities of Elasticsearch 5.x to boost your business
Packed with clear, step-by-step recipes to walk you through the capabilities of Elasticsearch 5.x
Who This Book Is For
If you are a developer who wants to get the most out of Elasticsearch for advanced search and analytics, this is the book for you. Some understanding of JSON is expected. If you want to extend Elasticsearch, understanding of Java and related technologies is also required.
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
In Detail
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.
Style and approach
This book follows a problem-solution approach to effectively use and manage Elasticsearch. Each recipe focuses on a particular task at hand, and is explained in a very simple, easy to understand manner.
Table of contents
-
Elasticsearch 5.x Cookbook Third Edition
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Dedication
- Preface
- 1. Getting Started
-
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
-
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
-
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)
-
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
-
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
- 7. Relationships and Geo Queries
-
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
- 9. Scripting
- 10. Managing Clusters and Nodes
- 11. Backup and Restore
- 12. User Interfaces
- 13. Ingest
-
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
- 15. Scala Integration
- 16. Python Integration
- 17. Plugin Development
- 18. Big Data Integration
Product information
- Title: Elasticsearch 5.x Cookbook - Third Edition
- Author(s):
- Release date: February 2017
- Publisher(s): Packt Publishing
- ISBN: 9781786465580
You might also like
book
Mastering Elasticsearch 5.x - Third Edition
Master the intricacies of Elasticsearch 5 and use it to create flexible and scalable search solutions …
book
ElasticSearch Cookbook - Second Edition
Over 130 advanced recipes to search, analyze, deploy, manage, and monitor data effectively with ElasticSearch In …
book
Learning Kibana 5.0
Exploit the visualization capabilities of Kibana and build powerful interactive dashboards About This Book Introduction to …
book
Elasticsearch Essentials
Harness the power of ElasticSearch to build and manage scalable search and analytics solutions with this …