rluiten/elm-text-search/2.1.1

NOTE: this package is not compatible with Elm 0.19.1

Index.Defaults

Defaults for indexes and configurations.

Index Storage Engine Version and Type

indexVersion : String

The version of index, for loading a saved index.

This is not the same as package version.

This needs to change if the encoded format changes. Be careful of updates to Trie package, if Trie encoding format changes this version needs to change as well.

The type of index defaults to using.

It defines the default token transforms and filters.

Built in Transforms and Filters

defaultTransformFactories : List (TransformFactory doc)

Index default transform factories.

defaultFilterFactories : List (FilterFactory doc)

Index default filter factories.

defaultTokenTrimmerFuncCreator : TransformFactory doc

The default token trimmer transform function creator. Normally applied first in transform functions.

defaultStemmerFuncCreator : TransformFactory doc

The default token stemmer transform function creator.

The default stop word filter function creator.

Config type adapters

getDefaultIndexConfig : SimpleConfig doc -> Config doc

Convert Index.Model.SimpleConfig to Index.Model.Config

Filling in default values for fields not in SimpleConfig

This is the definition of the default index configuration.

Copyright (c) 2016 Robin Luiten