This information applies to version 2.x 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.