# Handling Registered (®), Trademark (™), Degree (°) and other symbols

**URL:** <https://discuss.elastic.co/t/handling-registered-trademark-degree-and-other-symbols/102579>\
**Category:** Elasticsearch\
**Created:** [October 3, 2017, 2:56pm UTC](https://discuss.elastic.co/t/handling-registered-trademark-degree-and-other-symbols/102579 "2017-10-03T14:56:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParitoshBh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paritoshbh/32/22487_2.png) [@ParitoshBh](https://discuss.elastic.co/u/ParitoshBh)\
**Post date:** [October 3, 2017, 2:56pm UTC](https://discuss.elastic.co/t/handling-registered-trademark-degree-and-other-symbols/102579/1 "2017-10-03T14:56:20Z")

</div>

All these and other special characters are being stripped/handled during index generation, however its the query term coming in from the user which might have these terms.

Example, Index has brand name indexed as `brand name` instead of `brand® bame` however I still want `brand name` to show up when user searches for `brand® name`.

Looking around the documentation, I stumbled upon [Mapping Char Filter](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-mapping-charfilter.html) but am not sure if this is the right way to go ahead, with specifying individual mappings instead of a complete solution for such use cases.

Any help will be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 3, 2017, 4:44pm UTC](https://discuss.elastic.co/t/handling-registered-trademark-degree-and-other-symbols/102579/2 "2017-10-03T16:44:04Z")

</div>

The mapping char filter is probably the best way to go. You just need to  
setup the field with a mapping containing that filter. If you use a match  
query, then the field mapping will be applied to the query terms as well.

---

<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:** [October 31, 2017, 4:44pm UTC](https://discuss.elastic.co/t/handling-registered-trademark-degree-and-other-symbols/102579/3 "2017-10-31T16:44:23Z")

</div>

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