google_api_cloud_search v0.2.0 GoogleApi.CloudSearch.V1.Api.Query View Source
API calls for all endpoints tagged Query
.
Link to this section Summary
Functions
The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from G Suite Apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party.
Returns list of sources that user can use for Search and Suggest APIs.
Provides suggestions for autocompleting the query.
Link to this section Functions
cloudsearch_query_search(connection, optional_params \\ [], opts \\ [])
View Sourcecloudsearch_query_search(Tesla.Env.client(), keyword(), keyword()) :: {:ok, GoogleApi.CloudSearch.V1.Model.SearchResponse.t()} | {:error, Tesla.Env.t()}
The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from G Suite Apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party.
Note: This API requires a standard end user account to execute.
Parameters
connection
(type:GoogleApi.CloudSearch.V1.Connection.t
) - Connection to serveroptional_params
(type:keyword()
) - Optional parameters:"$.xgafv"
(type:String.t
) - V1 error format.:access_token
(type:String.t
) - OAuth access token.:alt
(type:String.t
) - Data format for response.:callback
(type:String.t
) - JSONP:fields
(type:String.t
) - Selector specifying which fields to include in a partial response.:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user.:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks.:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart").:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").:body
(type:GoogleApi.CloudSearch.V1.Model.SearchRequest.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.CloudSearch.V1.Model.SearchResponse{}}
on success{:error, info}
on failure
cloudsearch_query_sources_list(connection, optional_params \\ [], opts \\ [])
View Sourcecloudsearch_query_sources_list(Tesla.Env.client(), keyword(), keyword()) :: {:ok, GoogleApi.CloudSearch.V1.Model.ListQuerySourcesResponse.t()} | {:error, Tesla.Env.t()}
Returns list of sources that user can use for Search and Suggest APIs.
Note: This API requires a standard end user account to execute.
Parameters
connection
(type:GoogleApi.CloudSearch.V1.Connection.t
) - Connection to serveroptional_params
(type:keyword()
) - Optional parameters:"$.xgafv"
(type:String.t
) - V1 error format.:access_token
(type:String.t
) - OAuth access token.:alt
(type:String.t
) - Data format for response.:callback
(type:String.t
) - JSONP:fields
(type:String.t
) - Selector specifying which fields to include in a partial response.:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user.:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks.:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart").:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").:pageToken
(type:String.t
) - Number of sources to return in the response.:"requestOptions.debugOptions.enableDebugging"
(type:boolean()
) - If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.:"requestOptions.languageCode"
(type:String.t
) - The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations.Set this field using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language.
When specified, the documents in search results are biased towards the specified language.
The suggest API does not use this parameter. Instead, suggest autocompletes only based on characters in the query.
:"requestOptions.searchApplicationId"
(type:String.t
) - Id of the application created using SearchApplicationsService.:"requestOptions.timeZone"
(type:String.t
) - Current user's time zone id, such as "America/Los_Angeles" or "Australia/Sydney". These IDs are defined by Unicode Common Locale Data Repository (CLDR) project, and currently available in the file timezone.xml. This field is used to correctly interpret date and time queries. If this field is not specified, the default time zone (UTC) is used.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.CloudSearch.V1.Model.ListQuerySourcesResponse{}}
on success{:error, info}
on failure
cloudsearch_query_suggest(connection, optional_params \\ [], opts \\ [])
View Sourcecloudsearch_query_suggest(Tesla.Env.client(), keyword(), keyword()) :: {:ok, GoogleApi.CloudSearch.V1.Model.SuggestResponse.t()} | {:error, Tesla.Env.t()}
Provides suggestions for autocompleting the query.
Note: This API requires a standard end user account to execute.
Parameters
connection
(type:GoogleApi.CloudSearch.V1.Connection.t
) - Connection to serveroptional_params
(type:keyword()
) - Optional parameters:"$.xgafv"
(type:String.t
) - V1 error format.:access_token
(type:String.t
) - OAuth access token.:alt
(type:String.t
) - Data format for response.:callback
(type:String.t
) - JSONP:fields
(type:String.t
) - Selector specifying which fields to include in a partial response.:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user.:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks.:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart").:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").:body
(type:GoogleApi.CloudSearch.V1.Model.SuggestRequest.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.CloudSearch.V1.Model.SuggestResponse{}}
on success{:error, info}
on failure