ravendb
Version:
RavenDB client for Node.js
19 lines • 696 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryHighlightings = void 0;
const Hightlightings_js_1 = require("./Hightlightings.js");
class QueryHighlightings {
_highlightings = [];
add(fieldName) {
const fieldHighlightings = new Hightlightings_js_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