@webiny/api-headless-cms-ddb-es
Version:
DynamoDB and Elasticsearch storage operations plugin for Headless CMS API.
18 lines (17 loc) • 757 B
TypeScript
import type { OpenSearchBoolQueryConfig } from "@webiny/api-opensearch/types.js";
import type { CmsEntryListWhere, CmsModel } from "@webiny/api-headless-cms/types/index.js";
export declare const createBaseQuery: () => OpenSearchBoolQueryConfig;
interface Params {
model: CmsModel;
where: CmsEntryListWhere;
}
/**
* Latest and published are specific in Elasticsearch to that extend that they are tagged in the __type property.
* We allow either published or either latest.
* Latest is used in the manage API and published in the read API.
*
*
* We add the query.filter terms because we do not need scored search here and it is a bit faster.
*/
export declare const createInitialQuery: (params: Params) => OpenSearchBoolQueryConfig;
export {};