June 2017
Beginner to intermediate
404 pages
8h 22m
English
In this section, we will discuss how to use the bool query to combine different queries and boost individual queries. By default, the scores of all the queries are added to calculate the final score. The result documents must match all the must queries. The more should queries the document matches, the more relevant the document is. For example, we are looking for jackets priced under $100 and have at least 25 reviews. We will use the match query to match the term "jacket" in the must clause, price and reviews in the should clause. The more should clauses the document matches, the higher the score is. Jackets that are over $100 or which have reviews less than 25 can show up in results but are scored very ...
Read now
Unlock full access