1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-15 02:24:17 +02:00

result highlighting

This commit is contained in:
Thomas Wilkerling
2025-03-14 21:36:13 +01:00
parent 114303831c
commit baf0faaf81
54 changed files with 2220 additions and 1685 deletions

View File

@@ -66,7 +66,7 @@
index.add(data[i]);
}
// perform a query
// perform a query + enrich results
const result = index.search({
query: "karmen",
tag: {
@@ -77,7 +77,6 @@
]
},
enrich: true,
highlight: "<b>$1</b>"
});
// display results