Boosting
Overview
With the Enterprise Search there are two types of boosting, the Field Boosting and the Explicit Boosting. These configurations allow boosting of specific search results.
Field Boosting
With the field boosting, it's possible to boost values of a single field. It's easy to configure in the administration. It's 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.