Devalue multiple hits in title

Somewhat new to ES and trying to resolve what seems like should be a common issue, grateful for any pointers!

With a fairly standard article based search index, presence of the query word in the title should be boosted over presence in the body, because it presumably indicates that the article is more likely to be about that topic. However, a SECOND hit of the searched word in the title isn't likely to increase the quality of the result and shouldn't increase the relevance.

How would I go about combining the following score approaches:

  • boost title over body
  • have multiple hits in body increase relevance
  • don't allow multiple hits in title to increase relevance (or greatly reduce value of second hit)

Thanks for any ideas!

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