# Preferring 1st, 2nd, 3rd over 1, 2, 3

**URL:** <https://discuss.elastic.co/t/preferring-1st-2nd-3rd-over-1-2-3/110485>\
**Category:** Elasticsearch\
**Created:** [December 6, 2017, 9:51am UTC](https://discuss.elastic.co/t/preferring-1st-2nd-3rd-over-1-2-3/110485 "2017-12-06T09:51:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samiujan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samiujan/32/23605_2.png) [@samiujan](https://discuss.elastic.co/u/samiujan)\
**Post date:** [December 6, 2017, 9:51am UTC](https://discuss.elastic.co/t/preferring-1st-2nd-3rd-over-1-2-3/110485/1 "2017-12-06T09:51:53Z")

</div>

Hi

I have a shop field in my data where each value is like:

14th Street Pizza  
14th Street Pizza (in a different city)  
24 Wall Street Pizza  
Pizza Street  
14 Pizza Hot

I do a search for "14 street pizza", I want the first 2 to come up in that order

I did a simple query and got results like:

14th Street Pizza, NY  
24 Wall Street Pizza  
14th Street Pizza, MI  
Pizza Street  
14 Pizza Hot

I used fuzzy=2 and got "24 Wall Street Pizza" as the top result (I understand the levenshtein-damerau concept)

What's the best approach to solve this? Should I create a list of synonyms - where 1 =\> 1st, 2 =\>2nd and so on?

I also found a blog post that suggested to create a new field after removing all punctuation, spaces and make it lowercase

Thanks

---

<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:** [January 3, 2018, 9:51am UTC](https://discuss.elastic.co/t/preferring-1st-2nd-3rd-over-1-2-3/110485/2 "2018-01-03T09:51:58Z")

</div>

Closed on January 3, 2018, 9:51am UTC

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