# Sort Alphabetically but Ignore Articles

**URL:** <https://discuss.elastic.co/t/sort-alphabetically-but-ignore-articles/46220>\
**Category:** Elasticsearch\
**Created:** [April 4, 2016, 9:40am UTC](https://discuss.elastic.co/t/sort-alphabetically-but-ignore-articles/46220 "2016-04-04T09:40:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Donglecow](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Donglecow](https://discuss.elastic.co/u/Donglecow)\
**Post date:** [April 4, 2016, 9:40am UTC](https://discuss.elastic.co/t/sort-alphabetically-but-ignore-articles/46220/1 "2016-04-04T09:40:04Z")

</div>

Hi all,

I have looked around online for a solution to this, but so far have not found anything.

I have a system running with Elasticsearch which uses an analyser to sort alphabetically, however when doing this, articles are treated as relevant, meaning for example, a record called "The Mona Lisa" will be sorted under "T".

Is there a way to ignore articles (such as "The", "A", "An") in record names for sorting, so that "The Mona Lisa" would be sorted under "M"?

Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![abeyad](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@abeyad](https://discuss.elastic.co/u/abeyad)\
**Post date:** [April 5, 2016, 3:05am UTC](https://discuss.elastic.co/t/sort-alphabetically-but-ignore-articles/46220/2 "2016-04-05T03:05:32Z")

</div>

You can always have a multi field on which you can base your sorting. Details are here: [https://www.elastic.co/guide/en/elasticsearch/reference/current/\_multi\_fields.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/_multi_fields.html)

You can have your regular `title` field, then in its `fields`, you can add a `without_stop_words` and specify that it is analyzed by the stop word analyzer. Without fully understanding the details of your use case, something like that may work for you.

---

<div class="post-metadata">

**Author:** ![Donglecow](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Donglecow](https://discuss.elastic.co/u/Donglecow)\
**Post date:** [April 5, 2016, 3:04pm UTC](https://discuss.elastic.co/t/sort-alphabetically-but-ignore-articles/46220/3 "2016-04-05T15:04:38Z")

</div>

Thanks for the advice.

I've looked into stop words and that looks just like what I need, I will try it out.

Thanks again!

---

<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 5, 2017, 11:02pm UTC](https://discuss.elastic.co/t/sort-alphabetically-but-ignore-articles/46220/4 "2017-07-05T23:02:14Z")

</div>


