When working with thousands of documents, a question that emerges is how to find documents that are similar to a given document or a set of documents. There are often uses cases when one would like to show documents that are similar to the document that the user is viewing, or is interested in. Elasticsearch has a query feature called “More Like This Query”, also known as the MLT Query, that tackles these cases.

Keep reading

We all know that Elasticsearch is a powerful search engine that comes with a lot of additional plugins to meet most of the requirements. Suppose you have a special requirement to work with Elasticsearch that is not provided by any of the plugins available in the market. Don’t worry. Elasticsearch provides many custom plugin classes that can be extended and helps you create your own plugin to serve those purposes.

In this article we explain how to write a custom plugin for Elasticsearch.

Keep reading

Not yet enjoying the benefits of a hosted ELK-stack enterprise search on Qbox? Discover how easy it is to manage and scale your Elasticsearch environment.

Get Started 5 minutes to get started

You probably found this article by searching if you can secure your Elasticsearch cluster by providing some sort of authentication mechanism. You might have come across many options like Shield, or some of the open-source authentication plug-ins available in Qbox, but you decided that you want to have some fun by creating your own plugin for authenticating the REST requests coming to Elasticsearch. 

In this tutorial we explain how you can plug-in basic authentication into Elasticsearch. This article is based on the APIs available in Elasticsearch 2.3.x.

Keep reading

In production environments, network security is ineluctable. When elasticsearch is deployed, there are many ways to secure the environment. You can use Ngnix, commercial products like Shield, open source products, or easily selectable plugins via Qbox. However, you can also create your own security plugins and have more control over security. This article is intended to give readers a running start on how to write their own in-house security plugin.

Keep reading

How do you easily integrate Elasticsearch to your application? Elasticsearch gives us two ways, REST APIs and Native clients.

Which is the better solution? Like everything, there are pros and cons to both. For the REST APIs provided by Elasticsearch, you have to use third party libraries like JAX-RS to carry out the interaction. Although native clients are an easy option that come in many languages like Java, Python, Ruby, problems occur whenever there is a major version upgrade of Elasticsearch. You have to upgrade your native client, and many deem this as an unnecessary maintenance effort.

Keep reading

“ChatOps” has recently become a buzzword in places that are aiming for continuous delivery. It is based on chat clients like Slack and Hipchat and is plugged in with chatbots for real-time communication and task execution among members of development and IT operations teams.

Chat has become an integral part of the “better” delivery models. With huge amounts of data flowing within the system, wouldn’t it be nice if we could put it into an analysis tool and churn out some results that might improve the business?

In this article, we explore how to integrate Slack with Elasticsearch and perform basic data analyses for examples.

Keep reading