একাধিক ক্লায়েন্ট আইডি

বর্তমানে একটি ক্লায়েন্ট আইডি শুধুমাত্র একটি সার্চ ফিচার সাপোর্ট করতে পারে। আপনি যদি আপনার অ্যাপে একাধিক সার্চ ফিচার ব্যবহার করতে চান, তাহলে আপনার একাধিক ক্লায়েন্ট আইডি ব্যবহার করা উচিত। এছাড়াও, আপনি যদি আপনার অ্যাপের বিভিন্ন এন্ট্রি পয়েন্টে একই সার্চ ফিচার ব্যবহার করতে চান, তাহলে ট্র্যাফিক আলাদা করার জন্য সেগুলোর প্রতিটির জন্য ভিন্ন ভিন্ন ক্লায়েন্ট আইডি ব্যবহার করা উচিত।

For your each request, you can proactively set a client ID in GetSearchSuggestionsOptions , GetTrendingSearchesOptions or GetSearchContentOptions , and this ID will override the default client ID in the Info.plist file (only for this request).

সুইফট

অনুসন্ধানের পরামর্শ পান (বিকল্প সহ:)

Task {
    let options = GetSearchSuggestionsOptions(withTextContext:['Sample Query', 'Another query string'])
    options.clientId = "client id"
    let suggestions = try await searchRuntime.getSearchSuggestions(
            withOptions: options)
}

উদ্দেশ্য-সি

বিকল্প সহ অনুসন্ধানের পরামর্শ পান

  GetSearchSuggestionsOptions *options = [[GetSearchSuggestionsOptions alloc] initWithTextContext: @[@'Sample Query', @'Another query string' ]];
  options.clientId = [NSString stringWithFormat:@"client id"];
  [searchRuntime
      getSearchSuggestionsWithOptions:options
                             completionHandler:^(SearchSuggestions *_Nullable suggestions,
                                                 NSError *_Nullable error) {
                              // error will be not null if there is an error.
                              // On success, suggestions will be non null.
                            }];