WARNING: The 2.x versions of Elasticsearch have passed their EOL dates. If you are running a 2.x version, we strongly advise you to upgrade.
This documentation is no longer maintained and may be removed. For the latest information, see the current Elasticsearch documentation.
Full-Body Searchedit
Search lite—a query-string search—is useful for ad
hoc queries from the command line. To harness the full power of search,
however, you should use the request body search
API, so called because
most parameters are passed in the HTTP request body instead of in the query
string.
Request body search—henceforth known as search—not only handles the query itself, but also allows you to return highlighted snippets from your results, aggregate analytics across all results or subsets of results, and return did-you-mean suggestions, which will help guide your users to the best results quickly.