# Reduce Relevancy of TOC

**URL:** <https://discuss.elastic.co/t/reduce-relevancy-of-toc/74160>\
**Category:** Elasticsearch\
**Created:** [February 7, 2017, 5:00am UTC](https://discuss.elastic.co/t/reduce-relevancy-of-toc/74160 "2017-02-07T05:00:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![coogle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coogle/32/15175_2.png) [@coogle](https://discuss.elastic.co/u/coogle)\
**Post date:** [February 7, 2017, 5:00am UTC](https://discuss.elastic.co/t/reduce-relevancy-of-toc/74160/1 "2017-02-07T05:00:37Z")

</div>

Hello,

I was wondering, how do I best go about reducing the relevancy score of a result that has a specific phrase in a field? Specifically I have a document broken down into different sections

```auto
Document
    Table Of Contents
    Section 1
    Section 2

```

What I want to do is when I perform a search, I want any result that has a title of "Table of Contents" (ideally similar phrases as well) to not be as relevant as the other sections. I still want them to show up, but since they are likely to contain the same keywords (but really not be what the user is looking for) I want them to show up after other things.

The title exists in it's own property within the indexed document (i.e. myindex.mydocument.title)

Hints?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 7, 2017, 8:27am UTC](https://discuss.elastic.co/t/reduce-relevancy-of-toc/74160/2 "2017-02-07T08:27:48Z")

</div>

Hey,

you may want to check out the definitive guide on [query time boosting](https://www.elastic.co/guide/en/elasticsearch/guide/2.x/query-time-boosting.html) - make sure you read the whole [controlling relevance](https://www.elastic.co/guide/en/elasticsearch/guide/2.x/controlling-relevance.html) chapter, it is an important one and there are more gems hidden regarding what you want to do.

--Alex

---

<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:** [March 7, 2017, 8:28am UTC](https://discuss.elastic.co/t/reduce-relevancy-of-toc/74160/3 "2017-03-07T08:28:11Z")

</div>

Closed on March 7, 2017, 8:28am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
