Chapter 9: Bool Queries | Dev Focus: Elasticsearch 2.x (Tutorial / Demo)

preview_player
Показать описание

We have quite a heavy chapter ahead of us here on the Siteworx Developer Focus Elasticsearch Series. We hope you're ready!

So far, we've been writing individual queries on our index, but there are many instances where we will want to run multiple queries against one another to form a better result set. Today, we will learn about the Bool query, which is a compound query that allows us to send multiple queries in one request to Elasticsearch and get back results that fully match our criteria. We will be going over the four types of clauses used in a Bool query during this chapter:
– Must clauses
– Filter clauses
– Should clauses
– Must Not clauses

We will also be using the Bool query to help us understand the two different contexts a query can have in Elasticsearch: the query context and the filter context. While these are very similar to Full Text and Term Level querying, filter queries give us the added bonus of being able to have their results cached.

Pokémon © 2002-2015 Pokémon. © 1995-2015 Nintendo/Creatures Inc./GAME FREAK inc. TM, ® and Pokémon character names are trademarks of Nintendo. No copyright or trademark infringement is intended in using Pokémon content in this series.
Рекомендации по теме