Sorting a match query with ElasticSearch Sorting a match query with ElasticSearch elasticsearch elasticsearch

Sorting a match query with ElasticSearch


In order to sort on a string field, your mapping must contain a non-analyzed version of this field. Here's a simple blog post I found that describes how you can do this using the multi_field mapping type.