# Search fails when text contains trademark ® character

**URL:** <https://discuss.elastic.co/t/search-fails-when-text-contains-trademark-character/18515>\
**Category:** Elasticsearch\
**Created:** [July 7, 2014, 11:31pm UTC](https://discuss.elastic.co/t/search-fails-when-text-contains-trademark-character/18515 "2014-07-07T23:31:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![morad](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@morad](https://discuss.elastic.co/u/morad)\
**Post date:** [July 7, 2014, 11:31pm UTC](https://discuss.elastic.co/t/search-fails-when-text-contains-trademark-character/18515/1 "2014-07-07T23:31:21Z")

</div>

We have a webpage with a search field that uses ES.  
As a user types, possible candidate values appear for them to select.

There are some words with the reserved character ® next to it that is causing no results to appear at all.  
(FYI, we save the character as an HTML: "&#174" value).

As an example:  
HappyPete's® Famous Cookies  
(saved in the data store as "HappyPete's&#174 Famous Cookies")

As the user types "HappyPete's" nothing appears.  
To fix it, we don't want to strip the HTML in the ES data store, because it's needed elsewhere.

So how do we get the "HappyPete's® Famous Cookies" value to appear in the results, without the need to type the special ® character?

Thanks.

---

<div class="post-metadata">

**Author:** ![morad](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@morad](https://discuss.elastic.co/u/morad)\
**Post date:** [July 7, 2014, 11:32pm UTC](https://discuss.elastic.co/t/search-fails-when-text-contains-trademark-character/18515/2 "2014-07-07T23:32:36Z")

</div>

We save the ® as & # 1 7 4

---

<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:** [July 6, 2017, 1:17am UTC](https://discuss.elastic.co/t/search-fails-when-text-contains-trademark-character/18515/3 "2017-07-06T01:17:27Z")

</div>

Closed on July 6, 2017, 1:17am UTC


