Skip to content

SearchHit

Defined in: libs/runtime/src/full-text.ts:20

One result of a full-text search.

Properties

Name Description
entityId The thing that matched, as entityId spells it.
rank How well it matched, as a BM25 score.

readonly entityId: string

Defined in: libs/runtime/src/full-text.ts:22

The thing that matched, as entityId spells it.


readonly rank: number

Defined in: libs/runtime/src/full-text.ts:24

How well it matched, as a BM25 score. Lower is better, matching SQLite’s convention.

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.