UNPKG

@configurator/ravendb

Version:
21 lines 722 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QueryHighlightings = void 0; const Hightlightings_1 = require("./Hightlightings"); class QueryHighlightings { constructor() { this._highlightings = []; } add(fieldName) { const fieldHighlightings = new Hightlightings_1.Highlightings(fieldName); this._highlightings.push(fieldHighlightings); return fieldHighlightings; } update(queryResult) { for (const fieldHighlightings of this._highlightings) { fieldHighlightings.update(queryResult.highlightings); } } } exports.QueryHighlightings = QueryHighlightings; //# sourceMappingURL=QueryHighlightings.js.map