Skip to content

Commit c42abf7

Browse files
authored
Search doc fixes (Azure#41315)
* Fix docs * update changelog
1 parent e459f14 commit c42abf7

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

sdk/search/azure-search-documents/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Features Added
66

7+
- Added `azure.search.documents.models.DebugInfo`.
8+
79
### Breaking Changes
810

911
### Bugs Fixed

sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models_py3.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ def __init__(self, **kwargs: Any) -> None:
19201920

19211921

19221922
class SearchScoreThreshold(VectorThreshold):
1923-
"""The results of the vector query will filter based on the '@search.score' value. Note this is
1923+
"""The results of the vector query will filter based on the '\\@search.score' value. Note this is
19241924
the @search.score returned as part of the search response. The threshold direction will be
19251925
chosen for higher @search.score.
19261926
@@ -1929,7 +1929,7 @@ class SearchScoreThreshold(VectorThreshold):
19291929
:ivar kind: The kind of threshold used to filter vector queries. Required. Known values are:
19301930
"vectorSimilarity" and "searchScore".
19311931
:vartype kind: str or ~azure.search.documents.models.VectorThresholdKind
1932-
:ivar value: The threshold will filter based on the '@search.score' value. Note this is the
1932+
:ivar value: The threshold will filter based on the '\\@search.score' value. Note this is the
19331933
@search.score returned as part of the search response. The threshold direction will be chosen
19341934
for higher @search.score. Required.
19351935
:vartype value: float
@@ -1947,7 +1947,7 @@ class SearchScoreThreshold(VectorThreshold):
19471947

19481948
def __init__(self, *, value: float, **kwargs: Any) -> None:
19491949
"""
1950-
:keyword value: The threshold will filter based on the '@search.score' value. Note this is the
1950+
:keyword value: The threshold will filter based on the '\\@search.score' value. Note this is the
19511951
@search.score returned as part of the search response. The threshold direction will be chosen
19521952
for higher @search.score. Required.
19531953
:paramtype value: float

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async def get_answers(self) -> Optional[List[QueryAnswerResult]]:
7575
and answers are requested in the search query via the query_answer parameter.
7676
7777
:return: Answers.
78-
:rtype: list[~azure.search.documents.QueryAnswerResult]
78+
:rtype: list[~azure.search.documents.models.QueryAnswerResult]
7979
"""
8080
return cast(List[QueryAnswerResult], await self._first_iterator_instance().get_answers())
8181

sdk/search/azure-search-documents/azure/search/documents/indexes/aio/_search_index_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ async def analyze_text(self, index_name: str, analyze_request: AnalyzeTextOption
292292
:param analyze_request: The text and analyzer or analysis components to test.
293293
:type analyze_request: ~azure.search.documents.indexes.models.AnalyzeTextOptions
294294
:return: AnalyzeResult
295-
:rtype: ~azure.search.documents.indexes.models.AnalyzeRequest
295+
:rtype: ~azure.search.documents.indexes.models.AnalyzeResult
296296
:raises ~azure.core.exceptions.HttpResponseError: If the operation fails.
297297
298298
.. admonition:: Example:
@@ -487,7 +487,7 @@ def list_index_stats_summary(self, **kwargs: Any) -> AsyncItemPaged[IndexStatist
487487
"""Get index level statistics for a search service.
488488
489489
:return: Index statistics result.
490-
:rtype: ~azure.core.paging.AsyncItemPaged[~azure.search.documents.indexes.models.IndexStatisticsSummary]
490+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.search.documents.indexes.models.IndexStatisticsSummary]
491491
"""
492492
kwargs["headers"] = self._merge_client_headers(kwargs.get("headers"))
493493
# pylint:disable=protected-access
@@ -503,7 +503,7 @@ def list_aliases(self, *, select: Optional[List[str]] = None, **kwargs) -> Async
503503
properties.
504504
:paramtype select: list[str]
505505
:return: List of Aliases
506-
:rtype: ~azure.core.paging.AsyncItemPaged[~azure.search.documents.indexes.models.SearchAlias]
506+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.search.documents.indexes.models.SearchAlias]
507507
:raises ~azure.core.exceptions.HttpResponseError: If the operation fails.
508508
"""
509509
kwargs["headers"] = self._merge_client_headers(kwargs.get("headers"))
@@ -517,7 +517,7 @@ def list_alias_names(self, **kwargs) -> AsyncItemPaged[str]:
517517
"""List the alias names in an Azure Search service.
518518
519519
:return: List of alias names
520-
:rtype: ~azure.core.paging.AsyncItemPaged[str]
520+
:rtype: ~azure.core.async_paging.AsyncItemPaged[str]
521521
:raises ~azure.core.exceptions.HttpResponseError: If the operation fails.
522522
"""
523523
kwargs["headers"] = self._merge_client_headers(kwargs.get("headers"))
@@ -554,7 +554,7 @@ async def delete_alias(
554554
:type alias: str or ~azure.search.documents.indexes.models.SearchAlias
555555
:keyword match_condition: The match condition to use upon the etag
556556
:paramtype match_condition: ~azure.core.MatchConditions
557-
~azure.core.exceptions.HttpResponseError: If the operation fails.
557+
:raises ~azure.core.exceptions.HttpResponseError: If the operation fails.
558558
559559
.. admonition:: Example:
560560
@@ -733,7 +733,7 @@ def list_agents(self, **kwargs) -> AsyncItemPaged[KnowledgeAgent]:
733733
"""List the agents in an Azure Search service.
734734
735735
:return: List of Knowledge Agents
736-
:rtype: ~azure.core.paging.AsyncItemPaged[~azure.search.documents.indexes.models.KnowledgeAgent]
736+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.search.documents.indexes.models.KnowledgeAgent]
737737
:raises ~azure.core.exceptions.HttpResponseError: If the operation fails.
738738
"""
739739
kwargs["headers"] = self._merge_client_headers(kwargs.get("headers"))

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async def get_indexers(self, *, select: Optional[List[str]] = None, **kwargs) ->
174174
properties.
175175
:paramtype select: list[str]
176176
:return: List of all the SearchIndexers.
177-
:rtype: `list[~azure.search.documents.indexes.models.SearchIndexer]`
177+
:rtype: list[~azure.search.documents.indexes.models.SearchIndexer]
178178
179179
.. admonition:: Example:
180180
@@ -475,6 +475,8 @@ async def get_data_source_connection(
475475
:return: The SearchIndexerDataSourceConnection that is fetched.
476476
:rtype: ~azure.search.documents.indexes.models.SearchIndexerDataSourceConnection
477477
478+
.. admonition:: Example:
479+
478480
.. literalinclude:: ../samples/async_samples/sample_data_source_operations_async.py
479481
:start-after: [START get_data_source_connection_async]
480482
:end-before: [END get_data_source_connection_async]

sdk/search/azure-search-documents/azure/search/documents/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
from .._generated.models import (
2828
AutocompleteMode,
29+
DebugInfo,
2930
HybridCountAndFacetMode,
3031
HybridSearch,
3132
IndexAction,
@@ -60,6 +61,7 @@
6061

6162
__all__ = (
6263
"AutocompleteMode",
64+
"DebugInfo",
6365
"HybridCountAndFacetMode",
6466
"HybridSearch",
6567
"IndexAction",

0 commit comments

Comments
 (0)