Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SearchResult<K>

The structure of the object used to store search results

Type parameters

  • K = string

Hierarchy

  • SearchResult

Index

Properties

Properties

data

data: K

some arbitrary data associated with this item

index

index: number

index of the item in the original list

matches

matches: Int32Array

a flat array of pairs indicating the indices of match. [1,2,7,9] means that the indices [1, 2) and [7, 9) of the string are matched

score

score: number

the score of this result

Generated using TypeDoc