rluiten / elm-text-search / ElmTextSearchErrors

Error types used in ElmTextSearch results.

Types


type AddError
    = AddErrorUniqueRefIsEmpty
    | NoTermsToIndexAfterTokenisation
    | DocAlreadyExists

Used in error Result case of ElmTextSearh.addT


type RemoveError
    = RemoveErrorUniqueRefIsEmpty
    | DocIsNotInIndex

Used in error Result case of ElmTextSearh.removeT


type SearchError
    = IndexIsEmpty
    | QueryIsEmpty
    | NoTermsToSearchAfterTokenisation

Used in error Result case of ElmTextSearh.searchT