Guide
Modifier Functions
1min
modifier functions are helpers that change the way query functions work they are place in the end of query functions that support them almost all query functions support modifier functions there can be any amount of modifer functions placed in one query function here is short description of every modifer function full reference can be found from @klevu/core reference documentation modifier description listfilters() list all filters that given search result has applyfilters() applies selected filters to query applyfilterwithmanager() applies filters that's state is managed by filtermanager fallback() when query returns less results than fallback treshold then additional fallback query is sent boostwithkeywords() boost or deboost results with keywords boostwithrecords() boost or deboost certain products in the result by id boostwithfilters() boost or deboost results based on a filters boostwithfiltermanager() boost or deboost results based in selection in filter manager personalisation() enable personalisation to the query automatically applies last visited products include() force include given id's in the result top() force return given id's as first items on results sendsearchevent() when user takes action to search something this should be used sendmerchandisingviewevent() should be used with categorymerchandising() query to send view event of merchandising sendrecommendationviewevent() should be used with all recommendation queries send a analytical data about recommendation to klevu debug() prints query results to console raw() send any request to klevu api check api documentation for properties