rluiten/elm-text-search/1.0.1

NOTE: this package is not compatible with Elm 0.19.1

ElmTextSearch.Json.Encoder

Encoder for Index.

encoder : Index doc -> Value

Encoder for Index a.

Only encoding fields required to recreate a working index.

The following fields are not saved as they are restored via the provided Config on fromString.

  • ref
  • fields
  • transformFactories
  • filterFactories

The following fields are not saved because they are an acceleration model, decoder needs to set it on fromString.

  • corpusTokensIndex

The following fields are not saved because they are caches and are cached as operationg requires

  • transforms
  • filters
  • idfCache

Do not need an (a -> Encode.Value) because a is a document type and that is never encoded from an Index.

codecIndexRecordEncoder : CodecIndexRecord -> Value

Encode CodecIndexRecord.

Copyright (c) 2016 Robin Luiten