Options
All
  • Public
  • Public/Protected
  • All
Menu

@ntix/indexing

Index

Type aliases

TermValuesBuilder<T>: (item: T) => any[]

Type parameters

  • T

Type declaration

    • (item: T): any[]
    • describes a term values builder, taking an item and returning term values array

      Parameters

      • item: T

        object to index

      Returns any[]

      array of term values to add to the index

Variables

INDEXER_CHARS_BOUNDARIES: " \t\n\r\u000b!\"£$%^&*()_+{}[]:@~;#?,./|¬=<>" = ' \t\n\r\v!"£$%^&*()_+{}[]:@~;#?,./|¬=<>'

word boundary chars

INDEXER_CHARS_CAPITAL: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

Capital chars

INDEXER_CHARS_IGNORE: "-'`" = "-'`"

chars to ignore

INDEXER_CHARS_QUOTE: "\"" = '"'

quote chars

Functions

  • indexExact(input: any): string[]
  • indexGetWords(text: string): string[]
  • normalIndexOf(searchText: string, findText: string): number
  • Gets the index of the text ignoring diacritics

    Parameters

    • searchText: string

      text to search

    • findText: string

      text to find

    Returns number

  • toNormal(text: string): string
  • Removes diacritics

    Parameters

    • text: string

      text to process

    Returns string

Generated using TypeDoc