# Can I boost certain term without boosting the entire document or index?

**URL:** <https://discuss.elastic.co/t/can-i-boost-certain-term-without-boosting-the-entire-document-or-index/45853>\
**Category:** Elasticsearch\
**Created:** [March 30, 2016, 9:51pm UTC](https://discuss.elastic.co/t/can-i-boost-certain-term-without-boosting-the-entire-document-or-index/45853 "2016-03-30T21:51:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smishra](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@smishra](https://discuss.elastic.co/u/smishra)\
**Post date:** [March 30, 2016, 9:51pm UTC](https://discuss.elastic.co/t/can-i-boost-certain-term-without-boosting-the-entire-document-or-index/45853/1 "2016-03-30T21:51:01Z")

</div>

Hey folks,

My requirement is as follows. I want to boost the relevancy of certain words(say "elastic", "kibana" etc.) whenever they appear in any of the docs. The list of words will come as a list. I do not want to boost the entire doc or index to get the result. Also, I would prefer to have this solution during the index time rather than query time due to latency constraint.

My initial though is to write a custom analyzer which can scan for the term(input from a list) and add some weightage to that term. The custom analyzer will include other stock analyzers such as lowercase, Edge n-gram etc..

Wondering if anyone here can validate this or suggest other alternatives. I really appreaciate yo

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 30, 2016, 9:52pm UTC](https://discuss.elastic.co/t/can-i-boost-certain-term-without-boosting-the-entire-document-or-index/45853/2 "2016-03-30T21:52:08Z")

</div>

Given that scoring happens on a doc level, I am not sure if this will even work?

---

<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, 11:03pm UTC](https://discuss.elastic.co/t/can-i-boost-certain-term-without-boosting-the-entire-document-or-index/45853/3 "2017-07-05T23:03:52Z")

</div>


