By default, Elasticsearch sorts matching search results by relevance score, which measures how well each document matches a query.