elasticsearch

Fuzzy Searches

November 12, 2016 by
Part 28 of 35 in the Complete Guide to Elasticsearch series

In the previous lectures, I showed you how to perform a variety of searches. For full text searches, the exact terms that I was searching for had to match somewhere in the document. But what if a user enters something that is not an exact match, but should still be considered a match? For example,… read more

Searching with Query Strings: Phrase Query

November 12, 2016 by
Part 22 of 35 in the Complete Guide to Elasticsearch series

In this article, we will be talking about using the phrase query when searching with query strings. By default, all terms are optional, as long as at least one term matches. This is because the default boolean operator is OR. We can see this if we search for pasta spaghetti. GET /ecommerce/product/_search?q=name:pasta spaghetti If we take… read more

Introduction to Searching

May 15, 2016 by
Part 19 of 35 in the Complete Guide to Elasticsearch series

Before we will get into actually performing searches against an Elasticsearch cluster, I want to introduce the basic concepts of searching in Elasticsearch. In this post, I will talk about relevancy and scoring in Elasticsearch. I will also briefly introduce the two ways of searching, as well as the various types of queries. Relevancy &… read more

Retrieving Documents by ID

January 17, 2016 by
Part 18 of 35 in the Complete Guide to Elasticsearch series

Now that we have added and manipulated documents within our Elasticsearch index, let’s now see how we can retrieve data from it. The easiest way of retrieving data in Elasticsearch, is by retrieving documents by ID. You actually saw this in the previous article if you were paying attention (gotcha!). Simply specify the ID of… read more