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:
@@ -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
|
||||
|
Reference in New Issue
Block a user