1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-01 09:53:56 +02:00

replace unknown type in index.d.ts

This commit is contained in:
Thomas Wilkerling
2025-05-09 11:26:19 +02:00
parent f8a73fe38b
commit 5c341e4295
2 changed files with 7 additions and 5 deletions

View File

@@ -193,10 +193,12 @@ async function test_document() {
const doc26: EnrichedResults = doc24.and({}, { index: document2 }).resolve({ enrich: true });
// highlight within last resolver stage is work in progress:
const doc27: EnrichedResults = doc24.and({}, { index: document2, resolve: true, highlight: "" });
const doc28: DefaultSearchResults = document2.search({ pluck: { field: "meta:title", limit: 10 } });
const doc30: EnrichedResults = document2.search({ pluck: { field: "meta:title", highlight: true } });
// highlight on .resolve() is never supported:
// @ts-expect-error
const doc28: EnrichedResults = doc24.resolve({ highlight: "" });
const err0: EnrichedResults = doc24.resolve({ highlight: "" });
// @ts-expect-error
const err1: DocumentData = doc1[0].result[0].doc;