This information may not apply to the latest version of Elasticsearch. For the most up to date information, see the current version of the Elasticsearch Reference.
By default, results are returned sorted by relevance—with the most
relevant docs first. Later in this chapter, we explain what we mean by
relevance and how it is calculated, but let’s start by looking at the
parameter and how to use it.