Module Values.QueryRefinementSource

Suggestions for refining individual query terms. Suggestions are returned as objects which note the term, suggested replacement, and its index in the query.

Sourcetype nonrec t = {
  1. refinedTerm : QueryRefinementRefinedTermString.t option;
    (*

    The term that will be suggested to the user.

    *)
  2. originalTerm : QueryRefinementOriginalTermString.t option;
    (*

    The sub-string of the original query that is replaced by this query term.

    *)
  3. startIndex : QueryRefinementStartIndexInteger.t option;
    (*

    Start index of the parsed component.

    *)
  4. endIndex : QueryRefinementEndIndexInteger.t option;
    (*

    End index of the parsed query.

    *)
}
Sourceval make : ?refinedTerm:??? -> ?originalTerm:??? -> ?startIndex:??? -> ?endIndex:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of QueryRefinementStartIndexInteger.t | `String of QueryRefinementRefinedTermString.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