Module SearchSynonymSchema.T

type t
val v : synonyms:string list -> ?locale:string -> ?root:string -> ?symbols_to_index:string list -> unit -> t

Construct a value

  • parameter synonyms

    Array of words that should be considered as synonyms.

  • parameter locale

    Locale for the synonym, leave blank to use the standard tokenizer.

  • parameter root

    For 1-way synonyms, indicates the root word that words in the `synonyms` parameter map to.

  • parameter symbols_to_index

    By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is.

val locale : t -> string option

Locale for the synonym, leave blank to use the standard tokenizer.

val root : t -> string option

For 1-way synonyms, indicates the root word that words in the `synonyms` parameter map to.

val symbols_to_index : t -> string list option

By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is.

val synonyms : t -> string list

Array of words that should be considered as synonyms.

val jsont : t Jsont.t