# Sorting on a phrase ignoring stop words

**URL:** <https://discuss.elastic.co/t/sorting-on-a-phrase-ignoring-stop-words/22763>\
**Category:** Elasticsearch\
**Created:** [March 19, 2015, 2:53pm UTC](https://discuss.elastic.co/t/sorting-on-a-phrase-ignoring-stop-words/22763 "2015-03-19T14:53:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shgeorge](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@shgeorge](https://discuss.elastic.co/u/shgeorge)\
**Post date:** [March 19, 2015, 2:53pm UTC](https://discuss.elastic.co/t/sorting-on-a-phrase-ignoring-stop-words/22763/1 "2015-03-19T14:53:39Z")

</div>

I understand that we can sort a text field (Eg: title of a book)  
alphabetically only if it is mapped as "not\_analyzed". Is it possible to  
ignore stop words in the text during sorting?  
Does ES provide any such functionality or our app should index the field  
after removing all stop words and store as "not\_analyzed"?

Thanks in advance  
george

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/74021cde-d1f7-427a-887e-2fe7b9e3b8d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/74021cde-d1f7-427a-887e-2fe7b9e3b8d3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:25am UTC](https://discuss.elastic.co/t/sorting-on-a-phrase-ignoring-stop-words/22763/2 "2017-07-06T00:25:37Z")

</div>


