# Search special characters

**URL:** <https://discuss.elastic.co/t/search-special-characters/357392>\
**Category:** Elasticsearch\
**Created:** [April 15, 2024, 7:06am UTC](https://discuss.elastic.co/t/search-special-characters/357392 "2024-04-15T07:06:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![abekedevelop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abekedevelop/32/133529_2.png) [@abekedevelop](https://discuss.elastic.co/u/abekedevelop)\
**Post date:** [April 15, 2024, 7:06am UTC](https://discuss.elastic.co/t/search-special-characters/357392/1 "2024-04-15T07:06:59Z")

</div>

Hello!  
I am trying to search special characters in a field where values might be like  
BOSCH (+8) some other article  
BOSCH (+16) some article  
DENSO (+1) ik20  
and so on.  
so i need to have possibility to search like +8 and find appropriate items.  
would be grateful for any help!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 15, 2024, 7:27am UTC](https://discuss.elastic.co/t/search-special-characters/357392/2 "2024-04-15T07:27:48Z")

</div>

Welcome!

If you are using a `keyword` data type for the field and a `term` query, that would work.

---

<div class="post-metadata">

**Author:** ![abekedevelop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abekedevelop/32/133529_2.png) [@abekedevelop](https://discuss.elastic.co/u/abekedevelop)\
**Post date:** [April 15, 2024, 9:17am UTC](https://discuss.elastic.co/t/search-special-characters/357392/3 "2024-04-15T09:17:07Z")

</div>

no, i have it as a text field where i combined several fields from db to implement full\_text search. is there any solution to do such search on a text field?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 15, 2024, 9:59am UTC](https://discuss.elastic.co/t/search-special-characters/357392/4 "2024-04-15T09:59:18Z")

</div>

It will depend on the analyzer. You need to find the right analyzer (probably a custom one) that fits your needs.  
But why not using a `keyword` type if you are after exact matches?

---

<div class="post-metadata">

**Author:** ![abekedevelop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abekedevelop/32/133529_2.png) [@abekedevelop](https://discuss.elastic.co/u/abekedevelop)\
**Post date:** [April 15, 2024, 10:02am UTC](https://discuss.elastic.co/t/search-special-characters/357392/5 "2024-04-15T10:02:32Z")

</div>

it's an autoparts shop and full\_text field can be something like "Denso spark plug ik20 subaru legacy"  
and user would search like "subaru spark", "denso subaru" or "ik2", "ik20" so it would be possible to find matching product on different search conditions

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 15, 2024, 10:46am UTC](https://discuss.elastic.co/t/search-special-characters/357392/6 "2024-04-15T10:46:11Z")

</div>

So I think this is working out of the box... Just `ik2` won't match out of the box but this is something you can solved in different ways with edge n grams or synonyms.

---

<div class="post-metadata">

**Author:** ![abekedevelop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abekedevelop/32/133529_2.png) [@abekedevelop](https://discuss.elastic.co/u/abekedevelop)\
**Post date:** [April 15, 2024, 10:48am UTC](https://discuss.elastic.co/t/search-special-characters/357392/7 "2024-04-15T10:48:46Z")

</div>

thak u so much sir, for your response! i'll give it another try to figure out how to do it best.
