Section Link1 and Link2:

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.
Section Link1 and Link2:

Reason:
KeyError: 'hotelId', 'hotelName'.
Suggestion:
Section link:

Reason:
NameError: name 'client' is not defined.
Suggestion:
Section Link:

Suggestion:

Remove extra ';' at the end of the sentence.
4.
Section Link:
Reason:
AttributeError: 'SearchIndexerClient' object has no attribute 'create_datasource'.
Suggestion:
Section Link:

Suggestion1:
Update
SearchIndexerClientttoSearchIndexClient.Suggestion2:
Update
ind_clienttoindexers_client.Suggestion3:
Update
indexer-hotelstohotels.