Book Image

Elasticsearch Indexing

By : Huseyin Akdogan
Book Image

Elasticsearch Indexing

By: Huseyin Akdogan

Overview of this book

Beginning with an overview of the way ElasticSearch stores data, you’ll begin to extend your knowledge to tackle indexing and mapping, and learn how to configure ElasticSearch to meet your users’ needs. You’ll then find out how to use analysis and analyzers for greater intelligence in how you organize and pull up search results – to guarantee that every search query is met with the relevant results! You’ll explore the anatomy of an ElasticSearch cluster, and learn how to set up configurations that give you optimum availability as well as scalability. Once you’ve learned how these elements work, you’ll find real-world solutions to help you improve indexing performance, as well as tips and guidance on safety so you can back up and restore data. Once you’ve learned each component outlined throughout, you will be confident that you can help to deliver an improved search experience – exactly what modern users demand and expect.
Table of Contents (15 chapters)
Elasticsearch Indexing
About the Author
About the Reviewer

Correction of users' spelling mistakes

Typos and spelling mistakes are often encountered due to many reasons. Therefore, correcting typos and user spelling mistakes is an integral part of a good search experience. When you search for a phrase that is close to another frequently searched phrase, you may see the did you mean phrase, which helps correct users' spelling mistakes, as search engines use this form to improve the user search experience. For such a case, this is what Google shows us when we type in threat safe instead of thread safe. Take a look at the following screenshot as an example:

Elasticsearch allows us to use the Suggest API functionality. In this section, we will look at how to use the Suggest API both in simple use case scenarios and the basic configuration settings.


The Suggest API suggests similar terms based on text that you provided by using a suggester. Elasticsearch allows us to use three suggesters that provide three different functionalities. These are...