Function getDefaultValue

  • Returns the default value of an option. It will throw an error if no option with the given name exists.

    Parameters

    • optionName: string

      Name of the option

    Returns unknown

    The default value of the given option

    Usage:

    // Get default tokenizer
    getDefaultValue('tokenize')

    // Get default term processor
    getDefaultValue('processTerm')

    // Unknown options will throw an error
    getDefaultValue('notExisting')
    // => throws 'SlimSearch: unknown option "notExisting"'

Generated using TypeDoc