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
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.

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.

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. 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.

Method Details

search

public 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 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.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

searchAsync

public 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

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to