Boost
The "boost" clause allows you to control the relevance or importance of specific conditions within a search query through manipulation of scores. The "boost" clause is often employed when certain criteria or attributes should carry more weight in the search results, allowing for fine-tuned control over the relevance scoring.
Example
In the above example, the boost cause is used to specify constant score. If a document has a field named "City" with a value "Washington", the score will be 1.5. The score will otherwise be zero. This is regardless of rarity.
Last updated