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

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

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