Search APIs

So far, what we have learned from the preceding four chapters is preparing us for searching. We prepared the index settings, the mappings, the analyzers, and then we indexed the documents. One of the ultimate goals is to execute the query and get high-quality results from the index. The Search API allows you to perform a search query and return the search hits that match the query. There are two basic ways to run a search: one is to send the search request with URL parameters, and the other is to use a request body. This chapter also provides additional information about searching related APIs, such as tuning, validating, and troubleshooting. By the end of this chapter, you will have covered the following topics:

  • The URI search ...

Get Advanced Elasticsearch 7.0 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.