Module Values.TextOptionsSource

Options for text field. Present if IndexFieldType specifies the field is of type text. A text field is always searchable. All options are enabled by default.

Sourcetype nonrec t = {
  1. defaultValue : FieldValue.t option;
    (*

    A value to use for the field if the field isn't specified for a document.

    *)
  2. sourceField : FieldName.t option;
  3. returnEnabled : Boolean.t option;
    (*

    Whether the contents of the field can be returned in the search results.

    *)
  4. sortEnabled : Boolean.t option;
    (*

    Whether the field can be used to sort the search results.

    *)
  5. highlightEnabled : Boolean.t option;
    (*

    Whether highlights can be returned for the field.

    *)
  6. analysisScheme : Word.t option;
    (*

    The name of an analysis scheme for a text field.

    *)
}
Sourceval make : ?defaultValue:??? -> ?sourceField:??? -> ?returnEnabled:??? -> ?sortEnabled:??? -> ?highlightEnabled:??? -> ?analysisScheme:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `String of FieldValue.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t