# Search by all variants of a value

**URL:** <https://discuss.elastic.co/t/search-by-all-variants-of-a-value/274023>\
**Category:** Elasticsearch\
**Created:** [May 26, 2021, 8:14am UTC](https://discuss.elastic.co/t/search-by-all-variants-of-a-value/274023 "2021-05-26T08:14:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carina\_Sirbu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carina_sirbu/32/89270_2.png) [@Carina\_Sirbu](https://discuss.elastic.co/u/Carina_Sirbu)\
**Post date:** [May 26, 2021, 8:14am UTC](https://discuss.elastic.co/t/search-by-all-variants-of-a-value/274023/1 "2021-05-26T08:14:38Z")

</div>

Hello,

I have an application where the user can search for beauty products. Let's say the user wants to find all products from L'Oréal company. So when he goes to the search, he might type: LOREAL, L'OREAL, L'oreal, L'oréal or loreal.  
At the moment, they don't get any result since they didn't type exactly L'Oréal.

How can I handle this case?

---

<div class="post-metadata">

**Author:** ![mayya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayya/32/83147_2.png) [@mayya](https://discuss.elastic.co/u/mayya)\
**Post date:** [May 28, 2021, 9:33pm UTC](https://discuss.elastic.co/t/search-by-all-variants-of-a-value/274023/2 "2021-05-28T21:33:49Z")

</div>

You can either:

- use [synonym token filter](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-tokenfilter.html), and define all these terms as synonyms.
- use [ascii folding](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-asciifolding-tokenfilter.html) and lowercase filters to bring terms into more canonical form.
- use french analyzer
- use [fuzzy query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html) , but you should be careful with this as it may return too many irrelevant results

---

<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:** [June 25, 2021, 9:34pm UTC](https://discuss.elastic.co/t/search-by-all-variants-of-a-value/274023/3 "2021-06-25T21:34:15Z")

</div>

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