Chapter 4: Exploring Search Capabilities

Now that we have set the mappings and put the data inside the indices, we can start exploring the search capabilities of Elasticsearch. In this chapter, we will cover how to search using different factors: sorting, highlighting, scrolling, suggesting, counting, and deleting. These actions are the core part of Elasticsearch; ultimately, everything in Elasticsearch is about serving the query and returning good-quality results.

This chapter is divided into two parts: the first part shows how to perform an API call-related search, and the second part will look at two special query operators that are the basis for building complex queries in the upcoming chapters.

In this chapter, we will cover the following ...

Get Elasticsearch 8.x Cookbook - Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.