Boosting

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

This article explains how to boost terms and query clauses when searching in Elasticsearch. When searching for multiple terms, it is sometimes useful to be able to assign a higher or lower priority to certain terms. Elasticsearch provides a way of doing this by specifying a positive floating point number. Below is an example query.… read more

Proximity Searches

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

Now that we have taken a look at fuzzy searches, it’s time to take a quick look at proximity searches, which are somewhat related. We looked at phrase searches in a previous lecture, where the search query is enclosed within quotation marks and the terms must be in the correct order. A proximity search allows… read more

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