---
title: boostwithrecords
slug: klevucore-reference/boostwithrecords
docTags: 
createdAt: 2023-11-09T09:45:59.073Z
---

▸ **boostWithRecords**(`records`): `KlevuFetchModifer`

Boost or deboost query based on a record ids.

### Parameters

| Name      | Type                                         | Description                   |
| --------- | -------------------------------------------- | ----------------------------- |
| `records` | \{ `id`: `string` ; `weight`: `number`  }\[] | Keywords to boost and deboost |

### Returns

`KlevuFetchModifer`

KlevuModifier that be used to modify query

### Defined in

[modifiers/boostWithRecords/boostWithRecords.ts:10](https://github.com/klevultd/frontend-sdk/blob/492d3760/packages/klevu-core/src/modifiers/boostWithRecords/boostWithRecords.ts#L10)
