UNPKG

@klevu/core

Version:

Typescript SDK that simplifies development on Klevu backend. Klevu provides advanced AI-powered search and discovery solutions for online retailers.

21 lines (20 loc) 616 B
import { KlevuFetchModifer } from "../index.js"; /** * Boost or deboost query based on a record ids. * * @category Modifier * @param records Keywords to boost and deboost * @returns KlevuModifier that be used to modify query */ export declare function boostWithRecords(records: Array<{ /** * Record id */ id: string; /** * The boosting value to be applied, a decimal between 0 - 999. Please * specify values above 1 for boosting the records up the rankings, and a * value of 0 to 1 to de-boost records down the rankings. */ weight: number; }>): KlevuFetchModifer;