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

Store module

As the name suggests, the store module is related to controlling how index data is stored. All the operations on the hard disk drive are done using the store module. Therefore, when it comes to improving indexing performance, they need to focus on the store module. There are some tips to improve performance for this situation.

Store types

Elasticsearch allows an index to be stored on disk or in memory. By default, it uses filesystem based on storage, and, in this context, it provides some store types that we can use. Elasticsearch will automatically choose the best one for the operating environment. If you would like to use one of these store types, you should set the in elasticsearch.yml file: niofs

Or it can be set per-index basis at index creation time:

curl -XPUT localhost:9200/my_index -d '{
    "settings": {
        "": "niofs"

Now let's look at these store types one by one.

Simple filesystem store

The simplefs type uses...