Module Values.RelevantContentSource

Represents a piece of content that is relevant to a search query.

Sourcetype nonrec t = {
  1. content : String_.t option;
    (*

    The actual content of the relevant item.

    *)
  2. documentId : DocumentId.t option;
    (*

    The unique identifier of the document containing the relevant content.

    *)
  3. documentTitle : Title.t option;
    (*

    The title of the document containing the relevant content.

    *)
  4. documentUri : Url.t option;
    (*

    The URI of the document containing the relevant content.

    *)
  5. documentAttributes : DocumentAttributes.t option;
    (*

    Additional attributes of the document containing the relevant content.

    *)
  6. scoreAttributes : ScoreAttributes.t option;
    (*

    Attributes related to the relevance score of the content.

    *)
}
Sourceval make : ?content:String_.t -> ?documentId:DocumentId.t -> ?documentTitle:Title.t -> ?documentUri:Url.t -> ?documentAttributes:DocumentAttributes.t -> ?scoreAttributes:ScoreAttributes.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of DocumentAttributeKey.t | `Structure of (string * [> `List of [> `String of String_.t ] list | `Long of Long.t | `String of DocumentAttributeValueStringValueString.t | `Timestamp of Timestamp.t ]) list ]) list ] list | `String of String_.t | `Structure of (string * [> `Enum of string ]) list ]) 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