powered by
Define Elasticsearch query sort
sort_on(json)
JSON object describing the sorting required on the query results.
An elastic_sort object.
elastic_sort
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html
# NOT RUN { sort_by_key <- sort_on('[{"sort_key": {"order": "asc"}}]') # }
Run the code above in your browser using DataLab