UNPKG

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

Version:

DynamoDB and Elasticsearch storage operations plugin for Headless CMS API.

31 lines (28 loc) 678 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _default = () => ({ type: "cms-model-field-to-elastic-search", name: "cms-model-field-to-elastic-search-rich-text", fieldType: "rich-text", toIndex({ value }) { // TODO: convert rich-text object to a searchable string to offer full-text search at some point /** * We want to store rich-text value as a "rawValue", meaning it wont' be indexed by ES. */ return { rawValue: value }; }, fromIndex({ rawValue }) { return rawValue; } }); exports.default = _default; //# sourceMappingURL=richTextIndexing.js.map