> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Boost Documents Stage

[localhost link]: http://localhost:3000/docs/4/fusion-ai/reference/query-pipeline-stages/boost-documents-query-stage

[mintlify link]: https://doc.lucidworks.com/docs/4/fusion-ai/reference/query-pipeline-stages/boost-documents-query-stage.md

[old doc.lw link]: https://doc.lucidworks.com/fusion/5.9/536.md

The Boost Documents query pipeline stage adds boosting parameters to matched documents based on user-defined rules. Boosts are defined with a term value to boost and the boost factor to add. The boosting parameters are added to the `boost` Solr query parameter.

The Boost Documents rule consists of the following elements:

* `field`. The document field to filter on.
* `keywords`. The words, phrases, or regex used as the filter.
* `mode`. Filtering logic applied to keywords, one of:

  * `exact`. The keyword and the query must match exactly. This is case-sensitive.
  * `phrase`. The phrase matching on the items in the keywords list.
  * `regex`. Treat items in the keywords list as a regex.
  * `match`. Must match every item in the keyword list, but does not require phrase matching.
* `boosts`. Consists of a list of pairs.

  * `value`. One or more terms used for boosting.
  * `boost`. The numeric boost value. Default `100`.

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Configuration

> [!TIP]
>
> When entering configuration values in the UI, use *unescaped* characters, such as `\t` for the tab character. When entering configuration values in the API, use *escaped* characters, such as `\\t` for the tab character.

## Boost calculation

In Fusion 4.x.x, numbers entered into boosts are *added* to the score.

> [!TIP]
>
> **Important**
>
> This differs from Fusion 5.x.x, where numbers entered into boosts are *multiplied* with the score. This difference must be considered when you upgrade to Fusion 5.x.x. For more information, see [Fusion 5.x.x Boost Documents Stage](https://doc.lucidworks.com/docs/5/fusion/reference/config-ref/pipeline-stages/query-stages/boost-documents-query-stage.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.