This chapter has been all about the querying process. We started by looking at how to query Elasticsearch and what Elasticsearch does when it needs to handle the query. We also learned about the basic and compound queries, so we are now able to use both simple queries as well as the ones that group multiple small queries together. Finally, we discussed how to choose the right query for a given use case.
In the next chapter, we will extend our query knowledge. We will start with filtering our queries and move to highlighting possibilities and a way to validate our queries using Elasticsearch API. We will discuss sorting of search results and query rewrite which will show us what happens to some queries in Elasticsearch internals.