# Ignore accents - asciifolding? How to configure with tire?

**URL:** <https://discuss.elastic.co/t/ignore-accents-asciifolding-how-to-configure-with-tire/7936>\
**Category:** Elasticsearch\
**Created:** [May 31, 2012, 10:50pm UTC](https://discuss.elastic.co/t/ignore-accents-asciifolding-how-to-configure-with-tire/7936 "2012-05-31T22:50:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsiu](https://avatars.discourse-cdn.com/v4/letter/h/f0a364/32.png) [@hsiu](https://discuss.elastic.co/u/hsiu)\
**Post date:** [May 31, 2012, 10:50pm UTC](https://discuss.elastic.co/t/ignore-accents-asciifolding-how-to-configure-with-tire/7936/1 "2012-05-31T22:50:39Z")

</div>

Tire may or may not be an appropriate topic here - apologies if not.

I'm inheriting a project using Elastic Search through tire, both of which I'm entirely unfamiliar with. I need to make searches ignore accents - that is, a search for "this" should return "thís" and "thiš". In my searches, it's clear that the asciifolding filter is appropriate for this. I am having trouble engaging that filter, however, and the documentation on tire merely says that "most options" for elastic search are available through tire, though not exactly how to translate an ES config to tire in Ruby.

Here's the mapping and indexing in the inherited project, I can not find similar examples of this syntax in the tire documentation making this all very difficult for me to parse:

tire.mapping do  
indexes :id, :index =\> :not\_analyzed  
indexes :name, :filter =\> "asciifolding"  
indexes :description, :filter =\> "asciifolding"  
indexes :created\_at, :type =\> 'date'  
indexes :updated\_at, :type =\> 'date'  
indexes :file\_type  
indexes :indexed\_files, :type =\> 'object' do  
indexes :file, :type =\> 'object',  
:properties =\> {  
:title =\> {  
:type =\> "multi\_field",  
:fields =\> {  
:raw =\> { :type =\> 'string', :index =\> 'not\_analyzed'},  
:title =\> { :type =\> 'string', :filter =\> "asciifolding" }  
}  
},  
:description =\> { :type =\> "string", :filter =\> "asciifolding" }  
}  
end  
end

As you can see I've sort of arbitrarily put :filter =\> "asciifolding" in a few places I thought it seemed appropriate, or at least in the realm of possibility.

Any advice would be appreciated. Links to more complete documentation (I didn't find Elastic Search's particularly useful, either, unfortunately) would be appreciated 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:** [July 6, 2017, 3:26am UTC](https://discuss.elastic.co/t/ignore-accents-asciifolding-how-to-configure-with-tire/7936/2 "2017-07-06T03:26:06Z")

</div>

Closed on July 6, 2017, 3:26am UTC


