Recent Posts by Vineeth Mohan

Vineeth Mohan is a certified Elasticsearch trainer and author of "Elasticsearch Blueprints" book.

In this guide we explore Refresh and Flush operations in Elasticsearch. This guide will bring resolution to the differences between the two in an effective manner. We also cover the underlying basics of Lucene functionalities, like reopen and commits, which helps in understanding refresh and flux operations.

Keep reading

In this tutorial we cover a few commonly occurring issues for shard management in elasticsearch, their solutions, and also a few best practices. In some use cases, we incorporate special tricks to get things done. 

Keep reading

Slow Logs in Elasticsearch

Posted by Vineeth Mohan January 16, 2018

In this blog post we explore slow logs in elasticsearch, which is immensely helpful both in production and debugging environments. We show how slow logs generated by elasticsearch can act as a critical information provider regarding numerous factors in elasticsearch.

Keep reading

In this blog post, we will cover an important feature, the filtering of values with partitions in terms aggregation, which can also made used to navigate through the unique terms in the buckets of terms aggregation.

Prior to 5.2, there was an option to put zero as value for size in terms aggregation and fetch all terms. But this approach was a failure because it could harm the main memory while downloading entire set of terms.

Keep reading

In this blog post, we show how the suggest API in elasticsearch can handle misspelled words using the terms suggester. We also explore the various implementations of the term suggester API.

Keep reading

Phrase suggester is an advanced version of the term suggester. The additional functionality, which phrase suggester employs, is the selection of entire corrected phrases instead of individual words. This is based on the ngram-language modeling, and phrase suggesters can make better choices of tokens based on both frequency and concurrency.

In this tutorial, we show you how to use the phrase suggester to correct spellings in phrases, which offers the feature "did you mean" search functionality in elasticsearch.

Keep reading

In a previous post, How to Build an Autocomplete Feature with Elasticsearch, we showed how to build a simple autosuggest in elasticsearch. In this post, we explore the context based autosuggest, and show how to implement it. 

Keep reading

The suggest API is one of the important APIs in Elasticsearch. It is used extensively in search solutions to tremendously improve the user experience. Ranging from normal autocomplete to context based suggestions, this API has many interesting use cases, which we will explore. In this tutorial, we show how to implement a simple autocomplete with elasticsearch.

Keep reading

Sometimes when firing a query, it gets delayed, or the response time is slow. There could be a number of reasons for the sluggishness of the query; ranging from shard issues or from computing certain elements in the query. Elasticsearch, from version 2.2, provides the Profile API for users to inspect the query execution time and other details. In this blog post, we explore how the profile API can be used to look into query timings.

Keep reading

In this blog post, we explain memory related settings in detail, which can be used to give elasticsearch better performance especially at times of scaling. We also go over issues caused by poor memory settings, and the ways to overcome them.  

Keep reading