Sort Alphabetically but Ignore Articles

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.

You can always have a multi field on which you can base your sorting. Details are here:

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.

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!