# 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/22426>\
**Category:** Elasticsearch\
**Created:** [February 27, 2015, 9:34am UTC](https://discuss.elastic.co/t/how-to-configure-similarity-algorithm-on-index-or-type-level/22426 "2015-02-27T09:34:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youxu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/youxu/32/117375_2.png) [@Youxu](https://discuss.elastic.co/u/Youxu)\
**Post date:** [February 27, 2015, 9:34am UTC](https://discuss.elastic.co/t/how-to-configure-similarity-algorithm-on-index-or-type-level/22426/1 "2015-02-27T09:34:13Z")

</div>

Per ES guide, 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?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/93f56661-1763-4971-bc90-fc639baca63f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/93f56661-1763-4971-bc90-fc639baca63f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

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

</div>

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


