# How to configure similarity algorithm on index or type level?

**URL:** <https://discuss.elastic.co/t/how-to-configure-similarity-algorithm-on-index-or-type-level/22064>\
**Category:** Elasticsearch\
**Created:** [February 10, 2015, 1:39pm UTC](https://discuss.elastic.co/t/how-to-configure-similarity-algorithm-on-index-or-type-level/22064 "2015-02-10T13:39:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youxu1](https://avatars.discourse-cdn.com/v4/letter/y/b782af/32.png) [@Youxu1](https://discuss.elastic.co/u/Youxu1)\
**Post date:** [February 10, 2015, 1:39pm UTC](https://discuss.elastic.co/t/how-to-configure-similarity-algorithm-on-index-or-type-level/22064/1 "2015-02-10T13:39:04Z")

</div>

Per ES document, we can configure similarity on a field in mapping setting like this:

{  
"book" : {  
"properties" : {  
"title" : { "type" : "string", "similarity" : "my\_similarity" }  
}  
}

Is this possible to configure the similarity on index or type level so that don't have to configure the similarity for each field one by one?

---

<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, 12:33am UTC](https://discuss.elastic.co/t/how-to-configure-similarity-algorithm-on-index-or-type-level/22064/2 "2017-07-06T00:33:54Z")

</div>

Closed on July 6, 2017, 12:33am UTC


