Aracılığıyla paylaş


QueryContext Constructors

Definition

Overloads

QueryContext()

Initializes a new instance of the QueryContext class.

QueryContext(String, String, String, Nullable<Boolean>)

Initializes a new instance of the QueryContext class.

QueryContext()

Initializes a new instance of the QueryContext class.

public QueryContext ();
Public Sub New ()

Applies to

QueryContext(String, String, String, Nullable<Boolean>)

Initializes a new instance of the QueryContext class.

public QueryContext (string originalQuery, string alteredQuery = default, string alterationOverrideQuery = default, bool? adultIntent = default);
new Microsoft.Azure.CognitiveServices.Search.CustomSearch.Models.QueryContext : string * string * string * Nullable<bool> -> Microsoft.Azure.CognitiveServices.Search.CustomSearch.Models.QueryContext
Public Sub New (originalQuery As String, Optional alteredQuery As String = Nothing, Optional alterationOverrideQuery As String = Nothing, Optional adultIntent As Nullable(Of Boolean) = Nothing)

Parameters

originalQuery
String

The query string as specified in the request.

alteredQuery
String

The query string used by Bing to perform the query. Bing uses the altered query string if the original query string contained spelling mistakes. For example, if the query string is "saling downwind", the altered query string will be "sailing downwind". This field is included only if the original query string contains a spelling mistake.

alterationOverrideQuery
String

The query string to use to force Bing to use the original string. For example, if the query string is "saling downwind", the override query string will be "+saling downwind". Remember to encode the query string which results in "%2Bsaling+downwind". This field is included only if the original query string contains a spelling mistake.

adultIntent
Nullable<Boolean>

A Boolean value that indicates whether the specified query has adult intent. The value is true if the query has adult intent; otherwise, false.

Applies to