1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-10-04 00:51:52 +02:00

add result highlighting to autocomplete demo

This commit is contained in:
Thomas Wilkerling
2025-03-15 22:01:15 +01:00
parent 870c8c702a
commit be80bb0513
35 changed files with 196 additions and 150 deletions

View File

@@ -20,6 +20,7 @@ import "./document/search.js";
/**
* @constructor
* @param {!DocumentOptions} options
* @return {Document|Promise<Document>}
*/
export default function Document(options) {
@@ -49,8 +50,7 @@ export default function Document(options) {
this.cache = (tmp = options.cache || null) && new Cache(tmp);
// do not apply cache again for the indexes since .searchCache()
// is just a wrapper over .search()
options.cache =
/* suggest */ /* append: */ /* enrich */!1;
options.cache = /* suggest */ /* append: */ /* enrich */!1;
this.worker = options.worker;
@@ -206,7 +206,7 @@ Document.prototype.destroy = function () {
};
/**
* @this Document
* @this {Document}
*/
function parse_descriptor(options, document) {