# Search keywords contain numbers

**URL:** <https://discuss.elastic.co/t/search-keywords-contain-numbers/270471>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [April 17, 2021, 11:47pm UTC](https://discuss.elastic.co/t/search-keywords-contain-numbers/270471 "2021-04-17T23:47:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amer\_Enaya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amer_enaya/32/84913_2.png) [@Amer\_Enaya](https://discuss.elastic.co/u/Amer_Enaya)\
**Post date:** [April 17, 2021, 11:47pm UTC](https://discuss.elastic.co/t/search-keywords-contain-numbers/270471/1 "2021-04-17T23:47:08Z")

</div>

If I search for Milk 1.5 Liter, how can I show the results Milk 1.5L before Milk 2.5L

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [April 19, 2021, 2:31pm UTC](https://discuss.elastic.co/t/search-keywords-contain-numbers/270471/3 "2021-04-19T14:31:11Z")

</div>

I think there's a number of ways you could address this, but would probably depend on your exact use case.

If you could separate `1.5` and `2.5` into a distinct field, like "measurement" or something, then you could probably apply a higher Weight to that field to ensure that matches on that field factor more heavily in scoring.

---

<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:** [May 17, 2021, 2:31pm UTC](https://discuss.elastic.co/t/search-keywords-contain-numbers/270471/4 "2021-05-17T14:31:55Z")

</div>

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