Guilherme
Guilherme

Reputation: 1146

What influence the sorting of a query on Elastic Search?

The way mapping / analyzer is defined, influence a sorting of a query?

Upvotes: 0

Views: 81

Answers (1)

femtoRgon
femtoRgon

Reputation: 33341

By default, they are sorted by score, which is calculated (again, by default) using a tf-idf algorithm, documented in Lucene's TFIDFSimilarity documentation. You can specify sorting criteria yourself, see ElasticSearch's Sort.

Upvotes: 2

Related Questions