# Sorting data

**URL:** <https://discuss.elastic.co/t/sorting-data/204290>\
**Category:** Elasticsearch\
**Created:** [October 18, 2019, 11:49pm UTC](https://discuss.elastic.co/t/sorting-data/204290 "2019-10-18T23:49:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agus](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@agus](https://discuss.elastic.co/u/agus)\
**Post date:** [October 18, 2019, 11:49pm UTC](https://discuss.elastic.co/t/sorting-data/204290/1 "2019-10-18T23:49:49Z")

</div>

can elasticsearch sorting handle full text like "microsoft office"

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 19, 2019, 12:28am UTC](https://discuss.elastic.co/t/sorting-data/204290/2 "2019-10-19T00:28:03Z")

</div>

Welcome!

Yes it can. You need to use the `keyword` data type. This is happening by default when you index a document with the default mapping.  
You can search in `message` field for example and sort on `message.keyword`.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 16, 2019, 12:28am UTC](https://discuss.elastic.co/t/sorting-data/204290/3 "2019-11-16T00:28:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
