- Elasticsearch 7.0 Cookbook(Fourth Edition)
- Alberto Paro
- 164字
- 2021-06-24 14:52:33
Exploring Search Capabilities
Now that we have set the mappings and put the data in the indices, we can start exploring the search capabilities in Elasticsearch. In this chapter, we will cover searching 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 following chapters.
In this chapter, we will cover the following recipes:
- Executing a search
- Sorting results
- Highlighting results
- Executing a scrolling query
- Using the search_after functionality
- Returning inner hits in results
- Suggesting a correct query
- Counting matched results
- Explaining a query
- Query profiling
- Deleting by query
- Updating by query
- Matching all the documents
- Using a Boolean query
- Using the search template