This document discusses sorting and relevance in ElasticSearch. It provides examples of sorting search results by date or score. It also covers multilevel sorting, sorting on multivalue fields, and sorting on string fields after analyzing or not analyzing text. The document explains what determines relevance in ElasticSearch, including term frequency, inverse document frequency, and field length norm. It shows how to get explain plans and failure messages for queries. Finally, it provides a brief introduction to doc values in ElasticSearch and references a book for further information.