QueryContext Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.search.customsearch.models.QueryContext

public class QueryContext

Defines the query context that Bing used for the request.

Constructor Summary

Constructor Description
QueryContext()

Method Summary

Modifier and Type Method and Description
java.lang.Boolean adultIntent()

Get the adultIntent value.

java.lang.String alterationOverrideQuery()

Get the alterationOverrideQuery value.

java.lang.String alteredQuery()

Get the alteredQuery value.

java.lang.String originalQuery()

Get the originalQuery value.

QueryContext withOriginalQuery(String originalQuery)

Set the originalQuery value.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

QueryContext

public QueryContext()

Method Details

adultIntent

public Boolean adultIntent()

Get the adultIntent value.

Returns:

the adultIntent value

alterationOverrideQuery

public String alterationOverrideQuery()

Get the alterationOverrideQuery value.

Returns:

the alterationOverrideQuery value

alteredQuery

public String alteredQuery()

Get the alteredQuery value.

Returns:

the alteredQuery value

originalQuery

public String originalQuery()

Get the originalQuery value.

Returns:

the originalQuery value

withOriginalQuery

public QueryContext withOriginalQuery(String originalQuery)

Set the originalQuery value.

Parameters:

originalQuery - the originalQuery value to set

Returns:

the QueryContext object itself.

Applies to