BingNews.BingNewsSearchDefinitionStages.WithQuery Interface

public interface WithQuery

The stage of the definition to be specify query.

Method Summary

Modifier and Type Method and Description
BingNewsSearchDefinitionStages.WithExecute withQuery(String query)

The user's search query string. The query string cannot be empty. The query string may contain [Bing Advanced Operators](http://msdn.microsoft.com/library/ff795620.aspx). For example, to limit news to a specific domain, use the [site:](http://msdn.microsoft.com/library/ff795613.aspx) operator. Use this parameter only with the News Search API. Do not specify this parameter when calling the Trending Topics API or News Category API.

Method Details

withQuery

public BingNewsSearchDefinitionStages.WithExecute withQuery(String query)

The user's search query string. The query string cannot be empty. The query string may contain [Bing Advanced Operators](http://msdn.microsoft.com/library/ff795620.aspx). For example, to limit news to a specific domain, use the [site:](http://msdn.microsoft.com/library/ff795613.aspx) operator. Use this parameter only with the News Search API. Do not specify this parameter when calling the Trending Topics API or News Category API.

Parameters:

query

Returns:

next definition stage

Applies to