Doc boost if title contains / start with term

(from github.com/rhayun)
Hello

can you please help me to figure how to doc boost if title contain lets say the word “Home”
so its contains the word “Home” i want it to be above all the results in deepest depth

thanks

(from github.com/rhayun)
Is this will work?

title.trim().toLowerCase()​​​​​​​​​​​​​​​​​​​​​​​​​​​.startsWith("home")​​​​​ || title.trim().toLowerCase().startsWith("welcome")​

then boost with 100?

(from github.com/marevol)
Yes.
If you have a problem, check fess.log.

(from github.com/rhayun)
thanks

(from github.com/fanjinfei)
Is it possible to boost at query time?
https://www.elastic.co/guide/en/elasticsearch/reference/5.6/mapping-boost.html suggests to boost at query time instead of at indexing time.

(from github.com/marevol)
WORD^BOOST_VALUE
ex. Fess^10