Interface Marked

A text with the stretches of it a query matched.

interface Marked {
    text: string;
    marks: {
        start: number;
        end: number;
    }[];
}

Properties

Properties

text: string

The text as the index holds it, in NFC.

marks: {
    start: number;
    end: number;
}[]

Each matched stretch, from start up to end in UTF-16 units: whole words, in order, never overlapping.

Type declaration

  • start: number
  • end: number