Module Values.RelevanceFeedbackSource

Provides feedback on how relevant a document is to a search. Your application uses the SubmitFeedback API to provide relevance information.

Sourcetype nonrec t = {
  1. resultId : ResultId.t;
    (*

    The identifier of the search result that the user provided relevance feedback for.

    *)
  2. relevanceValue : RelevanceType.t;
    (*

    Whether the document was relevant or not relevant to the search.

    *)
}
Sourceval context_ : string
Sourceval make : resultId:ResultId.t -> relevanceValue:RelevanceType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of ResultId.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