Freigeben über


BingEntities Interface

public interface BingEntities

An instance of this class provides access to all the operations defined in BingEntities.

Method Summary

Modifier and Type Method and Description
abstract WithQuery search()

The Entity Search API lets you send a search query to Bing and get back search results that include entities and places.

abstract SearchResponse search(String query, SearchOptionalParameter searchOptionalParameter)

The Entity Search API lets you send a search query to Bing and get back search results that include entities and places.

abstract rx.Observable<SearchResponse> searchAsync(String query, SearchOptionalParameter searchOptionalParameter)

The Entity Search API lets you send a search query to Bing and get back search results that include entities and places.

Method Details

search

public abstract BingEntities.BingEntitiesSearchDefinitionStages.WithQuery search()

The Entity Search API lets you send a search query to Bing and get back search results that include entities and places. Place results include restaurants, hotel, or other local businesses. For places, the query can specify the name of the local business or it can ask for a list (for example, restaurants near me). Entity results include persons, places, or things. Place in this context is tourist attractions, states, countries, etc.

Returns:

the first stage of the search call

search

public abstract SearchResponse search(String query, SearchOptionalParameter searchOptionalParameter)

The Entity Search API lets you send a search query to Bing and get back search results that include entities and places. Place results include restaurants, hotel, or other local businesses. For places, the query can specify the name of the local business or it can ask for a list (for example, restaurants near me). Entity results include persons, places, or things. Place in this context is tourist attractions, states, countries, etc.

Parameters:

query - The user's search term.
searchOptionalParameter - the object representing the optional parameters to be set before calling this API

Returns:

the SearchResponse object if successful.

searchAsync

public abstract Observable searchAsync(String query, SearchOptionalParameter searchOptionalParameter)

The Entity Search API lets you send a search query to Bing and get back search results that include entities and places. Place results include restaurants, hotel, or other local businesses. For places, the query can specify the name of the local business or it can ask for a list (for example, restaurants near me). Entity results include persons, places, or things. Place in this context is tourist attractions, states, countries, etc.

Parameters:

query - The user's search term.
searchOptionalParameter - the object representing the optional parameters to be set before calling this API

Returns:

the observable to the SearchResponse object

Applies to