@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) • 637 B
TypeScript
import { KlevuFetchModifer } from "../index.js";
/**
* Boost or deboost query based on a keywords.
*
* @category Modifier
* @param keywords Keywords to boost and deboost
* @returns KlevuModifier that be used to modify query
*/
export declare function boostWithKeywords(keywords: Array<{
/**
* phrase to boost or debost
*/
phrase: 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;