Boosting
Overview
With the Advanced Search there are two types of boosting:
These configurations allow boosting of specific search results.
Field boosting
With field boosting, it's possible to boost the values of a single field. It is easy to configure in the Administration. It is just needed to set the configuration to Prioritized
. In the code, this option is checked. If this field is set to prioritized
, a little Boosting of 2
will be added; otherwise, the value will be 1
.
Explicit boosting
Like the field boosting, the explicit boosting can be configured in the Administration. With this boosting, you have more possibilities. The BoostingQueryBuilder
assembles all queries into one Should Query, which contains a Constant Score Query.