UNPKG

@webiny/api-headless-cms-ddb-es

Version:

DynamoDB and Elasticsearch storage operations plugin for Headless CMS API.

19 lines (18 loc) 614 B
import { BoolQueryConfig } from "@webiny/api-elasticsearch/types"; /** * This function will assign a minimum_should_match for the query if conditions are met: * * should is an array * * it is not empty * * minimum_should_match is not already set * * * By the default we set it to 1 as we want at least one OR condition to produce results. * * Users can modify minimum_should_match value via the body or query modification plugins. */ interface Params { query: BoolQueryConfig; value?: number; } export declare const assignMinimumShouldMatchToQuery: ({ query, value }: Params) => void; export {};