# Hyphen (dash) tokenizing

**URL:** <https://discuss.elastic.co/t/hyphen-dash-tokenizing/358226>\
**Category:** Elasticsearch\
**Created:** [April 25, 2024, 3:12pm UTC](https://discuss.elastic.co/t/hyphen-dash-tokenizing/358226 "2024-04-25T15:12:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryans](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@ryans](https://discuss.elastic.co/u/ryans)\
**Post date:** [April 25, 2024, 3:12pm UTC](https://discuss.elastic.co/t/hyphen-dash-tokenizing/358226/1 "2024-04-25T15:12:32Z")

</div>

Hello. I'm trying to make it so queries for "Tiger's-Eye" and "Tiger's Eye" and "Tiger Eye" and "Tiger-Eye" (without quotes) all return the same results WITHOUT USING SYNONYMS. I can do this part with my tokenizer and analyzer, however, I also don't want a search for "x-men" (without quotes) to match to "This poster is of several men and is 24" x 72".  
Any ideas?  
TIA

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [June 23, 2025, 3:22pm UTC](https://discuss.elastic.co/t/hyphen-dash-tokenizing/358226/2 "2025-06-23T15:22:21Z")

</div>

Hi @ryans,

Having a quick search, I came across [this answer](https://discuss.elastic.co/t/searching-for-exactly-a-hyphenated-word/161216) that suggests using a mapping character filter. Is that what you're trying to do?
