Module Values.TextMatchItemSource

A structure indicating matched terms for an attribute.

Sourcetype nonrec t = {
  1. attribute : Attribute.t option;
    (*

    The name of the attribute.

    *)
  2. text : String_.t option;
    (*

    Snippet of attribute text containing highlighted content.

    *)
  3. matchOffsets : MatchOffsets.t option;
    (*

    List of offsets indicating matching terms in the TextMatchItem text.

    *)
}
Sourceval make : ?attribute:??? -> ?text:??? -> ?matchOffsets:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Integer of Integer.t ]) list ] list | `String of Attribute.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