Class SearchIndex<T>

A collection where all representations (T) of data (D) are indexed upon insertion for efficient querying based on given configuration Use cases include:

  • Search feature which returns relevant results with the option to support "autocomplete" functionality
  • Answering potentially complex but predictable questions based on parameters of an "indexer" function

Type Parameters

  • T

Implements

Constructors

Properties

index: Record<string, SearchResult<T>[]> = {}

Methods

Generated using TypeDoc