-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.DocsSearchblocking-releaseBlocks releaseBlocks releaseneeds-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamtest-manual-pass
Milestone
Description
Reason:
KeyError: 'hotelId', 'hotelName'.
Suggestion:
print("{}: {})".format(result["HotelId"], result["HotelName"]))
Section link:

Reason:
NameError: name 'client' is not defined.
Suggestion:
search_client = SearchClient(endpoint, index_name, credential=AzureKeyCredential(key))
result = search_client.upload_documents(documents=[DOCUMENT])
Section Link:

Suggestion:
Remove extra ';' at the end of the sentence.
4.
Section Link:

Reason:
AttributeError: 'SearchIndexerClient' object has no attribute 'create_datasource'.
Suggestion:
def _create_datasource():
# Here we create a datasource. As mentioned in the description we have stored it in
# "searchcontainer"
ds_client = SearchIndexerClient(service_endpoint, AzureKeyCredential(key))
container = SearchIndexerDataContainer(name='searchcontainer')
data_source_connection = SearchIndexerDataSourceConnection(
name="hotel-datasource",
type="azureblob",
connection_string=connection_string,
container=container
)
result = ds_client.create_data_source_connection(data_source_connection)
return result
Section Link:

Suggestion1:
Update SearchIndexerClientt to SearchIndexClient.
Suggestion2:
Update ind_client to indexers_client.
Suggestion3:
Update indexer-hotels to hotels.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.DocsSearchblocking-releaseBlocks releaseBlocks releaseneeds-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamtest-manual-pass
