class ProjectsLocationsRankingConfigs extends Resource (View source)

The "rankingConfigs" collection of methods.

Typical usage is:

 $discoveryengineService = new Google\Service\DiscoveryEngine(...);
 $rankingConfigs = $discoveryengineService->projects_locations_rankingConfigs;

Methods

rank(string $rankingConfig, GoogleCloudDiscoveryengineV1RankRequest $postBody, array $optParams = [])

Ranks a list of text records based on the given input query.

Details

GoogleCloudDiscoveryengineV1RankResponse rank(string $rankingConfig, GoogleCloudDiscoveryengineV1RankRequest $postBody, array $optParams = [])

Ranks a list of text records based on the given input query.

(rankingConfigs.rank)

Parameters

string $rankingConfig

Required. The resource name of the rank service config, such as projects/{project_num}/locations/{location_id}/rankingConfig s/default_ranking_config.

GoogleCloudDiscoveryengineV1RankRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDiscoveryengineV1RankResponse

Exceptions

Exception