# Curly ’ or straight ' quote inside text affect the search result

**URL:** <https://discuss.elastic.co/t/curly-or-straight-quote-inside-text-affect-the-search-result/292926>\
**Category:** Elasticsearch\
**Created:** [December 26, 2021, 10:18am UTC](https://discuss.elastic.co/t/curly-or-straight-quote-inside-text-affect-the-search-result/292926 "2021-12-26T10:18:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliezra236](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eliezra236/32/78034_2.png) [@eliezra236](https://discuss.elastic.co/u/eliezra236)\
**Post date:** [December 26, 2021, 10:18am UTC](https://discuss.elastic.co/t/curly-or-straight-quote-inside-text-affect-the-search-result/292926/1 "2021-12-26T10:18:57Z")

</div>

Hi,

I have records that use either  
`’` or `'` or `

And they can't find eachother.  
For example if I have:

`name: A Bastard's Tale`

And I will try to search for `"A Bastard’s Tale"` it wouldn't find it.

How can I make it so it will work? or straight up ignore it? so "A Bastard Tale" and "A Bastards Tale" will also work?

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [December 26, 2021, 3:40pm UTC](https://discuss.elastic.co/t/curly-or-straight-quote-inside-text-affect-the-search-result/292926/2 "2021-12-26T15:40:57Z")

</div>

Hi,

[Mapping character filter](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-mapping-charfilter.html) will help you.

---

<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:** [January 23, 2022, 3:40pm UTC](https://discuss.elastic.co/t/curly-or-straight-quote-inside-text-affect-the-search-result/292926/3 "2022-01-23T15:40:59Z")

</div>

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