# Relevance configuration

**URL:** <https://discuss.elastic.co/t/relevance-configuration/61932>\
**Category:** Elasticsearch\
**Created:** [September 30, 2016, 2:21pm UTC](https://discuss.elastic.co/t/relevance-configuration/61932 "2016-09-30T14:21:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![inatoff](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@inatoff](https://discuss.elastic.co/u/inatoff)\
**Post date:** [September 30, 2016, 2:21pm UTC](https://discuss.elastic.co/t/relevance-configuration/61932/1 "2016-09-30T14:21:01Z")

</div>

Greetings, dear Community.  
It would be great if somebody can help me.  
We have n-types in index, every type has own set of columns(fields).  
When I want to search above all index, I need to configure relevance depending on type and type field.  
How can I do it?  
Thank you for your attention.

---

<div class="post-metadata">

**Author:** ![softwaredoug](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/softwaredoug/32/22681_2.png) [@softwaredoug](https://discuss.elastic.co/u/softwaredoug)\
**Post date:** [September 30, 2016, 2:51pm UTC](https://discuss.elastic.co/t/relevance-configuration/61932/2 "2016-09-30T14:51:45Z")

</div>

What do you mean by "configure relevance depending on type and type field"?

Do you want to customize `TF*IDF` per type/field? If so, [follow these instructions](https://www.elastic.co/guide/en/elasticsearch/guide/current/changing-similarities.html) and change the similarity per mapping.

Do you want to control the matching process by customizing analyzers? Well you can [do that too](https://www.elastic.co/guide/en/elasticsearch/guide/current/custom-analyzers.html).

Or do you want to control how different fields are weighted/boosted. Well there's [that too](https://www.elastic.co/guide/en/elasticsearch/guide/current/query-time-boosting.html).

But that covers basically an extremely broad range of capabilities, so I'm not sure what you mean. There's also a [whole book](http://manning.com/books/relevant-search) (disclaimer: that I wrote) that covers relevance in Elasticsearch you might want to check out. DM me for a discount code.

---

<div class="post-metadata">

**Author:** ![inatoff](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@inatoff](https://discuss.elastic.co/u/inatoff)\
**Post date:** [October 3, 2016, 9:39am UTC](https://discuss.elastic.co/t/relevance-configuration/61932/3 "2016-10-03T09:39:24Z")

</div>

I mean, I have index with two types like "Contacts", and "Account", they both have "Name" field, how can I boost  
field "Name" in "Contact" higher than "Name" in "Account"?

---

<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 5, 2017, 10:15pm UTC](https://discuss.elastic.co/t/relevance-configuration/61932/4 "2017-07-05T22:15:31Z")

</div>


