Skip to content

Commit 9657ada

Browse files
authored
fix cspell issues (Azure#22948)
1 parent 1db4cbd commit 9657ada

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

sdk/search/azure-search-documents/azure/search/documents/_index_documents_batch.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _flatten_args(args):
2121

2222

2323
class IndexDocumentsBatch(object):
24-
"""Represent a batch of upate operations for documents in an Azure
24+
"""Represent a batch of update operations for documents in an Azure
2525
Search index.
2626
2727
Index operations are performed in the order in which they are added
@@ -81,7 +81,7 @@ def add_merge_actions(
8181
self, *documents, **kwargs
8282
): # pylint: disable=unused-argument
8383
# type (Union[List[dict], List[List[dict]]]) -> List[IndexAction]
84-
"""Add documents to merge in to existing documets in the Azure search
84+
"""Add documents to merge in to existing documents in the Azure search
8585
index.
8686
8787
Merge updates an existing document with the specified fields. If the
@@ -101,14 +101,14 @@ def add_merge_or_upload_actions(
101101
self, *documents, **kwargs
102102
): # pylint: disable=unused-argument
103103
# type (Union[List[dict], List[List[dict]]]) -> List[IndexAction]
104-
"""Add documents to merge in to existing documets in the Azure search
104+
"""Add documents to merge in to existing documents in the Azure search
105105
index, or upload if they do not yet exist.
106106
107107
This action behaves like *merge* if a document with the given key
108108
already exists in the index. If the document does not exist, it behaves
109109
like *upload* with a new document.
110110
111-
:param documents: Documents to merge or uplaod into an Azure search
111+
:param documents: Documents to merge or upload into an Azure search
112112
index. May be a single list of documents, or documents as individual
113113
parameters.
114114
:type documents: dict or list[dict]

sdk/search/azure-search-documents/azure/search/documents/aio/_index_documents_batch_async.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _flatten_args(args):
2121

2222

2323
class IndexDocumentsBatch(object):
24-
"""Represent a batch of upate operations for documents in an Azure
24+
"""Represent a batch of update operations for documents in an Azure
2525
Search index.
2626
2727
Index operations are performed in the order in which they are added
@@ -77,7 +77,7 @@ async def add_delete_actions(self, *documents):
7777

7878
async def add_merge_actions(self, *documents):
7979
# type (Union[List[dict], List[List[dict]]]) -> List[IndexAction]
80-
"""Add documents to merge in to existing documets in the Azure search
80+
"""Add documents to merge in to existing documents in the Azure search
8181
index.
8282
8383
Merge updates an existing document with the specified fields. If the
@@ -95,14 +95,14 @@ async def add_merge_actions(self, *documents):
9595

9696
async def add_merge_or_upload_actions(self, *documents):
9797
# type (Union[List[dict], List[List[dict]]]) -> List[IndexAction]
98-
"""Add documents to merge in to existing documets in the Azure search
98+
"""Add documents to merge in to existing documents in the Azure search
9999
index, or upload if they do not yet exist.
100100
101101
This action behaves like *merge* if a document with the given key
102102
already exists in the index. If the document does not exist, it behaves
103103
like *upload* with a new document.
104104
105-
:param documents: Documents to merge or uplaod into an Azure search
105+
:param documents: Documents to merge or upload into an Azure search
106106
index. May be a single list of documents, or documents as individual
107107
parameters.
108108
:type documents: dict or list[dict]

sdk/search/azure-search-documents/azure/search/documents/indexes/_search_indexer_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def create_or_update_indexer(self, indexer, **kwargs):
119119
:keyword disable_cache_reprocessing_change_detection: Disables cache reprocessing change
120120
detection.
121121
:paramtype disable_cache_reprocessing_change_detection: bool
122-
:return: The created IndexSearchIndexerer
122+
:return: The created SearchIndexer
123123
:rtype: ~azure.search.documents.indexes.models.SearchIndexer
124124
"""
125125
kwargs["headers"] = self._merge_client_headers(kwargs.get("headers"))

sdk/search/azure-search-documents/samples/async_samples/sample_semantic_search_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def speller():
3535
client = SearchClient(endpoint=endpoint,
3636
index_name=index_name,
3737
credential=credential)
38-
results = await client.search(search_text="luxucy", query_language="en-us", query_speller="lexicon")
38+
results = await client.search(search_text="luxury", query_language="en-us", query_speller="lexicon")
3939

4040
async for result in results:
4141
print("{}\n{}\n)".format(result["HotelId"], result["HotelName"]))

sdk/search/azure-search-documents/samples/sample_semantic_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def speller():
3434
client = SearchClient(endpoint=endpoint,
3535
index_name=index_name,
3636
credential=credential)
37-
results = list(client.search(search_text="luxucy", query_language="en-us", query_speller="lexicon"))
37+
results = list(client.search(search_text="luxury", query_language="en-us", query_speller="lexicon"))
3838

3939
for result in results:
4040
print("{}\n{}\n)".format(result["HotelId"], result["HotelName"]))

0 commit comments

Comments
 (0)