Type definitions#
Index > CloudSearchDomain > Type definitions
Auto-generated documentation for CloudSearchDomain type annotations stubs module mypy-boto3-cloudsearchdomain.
BlobTypeDef#
# BlobTypeDef definition
BlobTypeDef = Union[
str,
bytes,
IO[Any],
StreamingBody,
]
BucketTypeDef#
# BucketTypeDef definition
class BucketTypeDef(TypedDict):
value: NotRequired[str],
count: NotRequired[int],
DocumentServiceWarningTypeDef#
# DocumentServiceWarningTypeDef definition
class DocumentServiceWarningTypeDef(TypedDict):
message: NotRequired[str],
FieldStatsTypeDef#
# FieldStatsTypeDef definition
class FieldStatsTypeDef(TypedDict):
min: NotRequired[str],
max: NotRequired[str],
count: NotRequired[int],
missing: NotRequired[int],
sum: NotRequired[float],
sumOfSquares: NotRequired[float],
mean: NotRequired[str],
stddev: NotRequired[float],
HitTypeDef#
# HitTypeDef definition
class HitTypeDef(TypedDict):
id: NotRequired[str],
fields: NotRequired[Dict[str, List[str]]],
exprs: NotRequired[Dict[str, str]],
highlights: NotRequired[Dict[str, str]],
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
SearchRequestRequestTypeDef#
# SearchRequestRequestTypeDef definition
class SearchRequestRequestTypeDef(TypedDict):
query: str,
cursor: NotRequired[str],
expr: NotRequired[str],
facet: NotRequired[str],
filterQuery: NotRequired[str],
highlight: NotRequired[str],
partial: NotRequired[bool],
queryOptions: NotRequired[str],
queryParser: NotRequired[QueryParserType], # (1)
returnFields: NotRequired[str],
size: NotRequired[int],
sort: NotRequired[str],
start: NotRequired[int],
stats: NotRequired[str],
- See QueryParserType
SearchStatusTypeDef#
# SearchStatusTypeDef definition
class SearchStatusTypeDef(TypedDict):
timems: NotRequired[int],
rid: NotRequired[str],
SuggestionMatchTypeDef#
# SuggestionMatchTypeDef definition
class SuggestionMatchTypeDef(TypedDict):
suggestion: NotRequired[str],
score: NotRequired[int],
id: NotRequired[str],
SuggestRequestRequestTypeDef#
# SuggestRequestRequestTypeDef definition
class SuggestRequestRequestTypeDef(TypedDict):
query: str,
suggester: str,
size: NotRequired[int],
SuggestStatusTypeDef#
# SuggestStatusTypeDef definition
class SuggestStatusTypeDef(TypedDict):
timems: NotRequired[int],
rid: NotRequired[str],
UploadDocumentsRequestRequestTypeDef#
# UploadDocumentsRequestRequestTypeDef definition
class UploadDocumentsRequestRequestTypeDef(TypedDict):
documents: BlobTypeDef,
contentType: ContentTypeType, # (1)
- See ContentTypeType
BucketInfoTypeDef#
# BucketInfoTypeDef definition
class BucketInfoTypeDef(TypedDict):
buckets: NotRequired[List[BucketTypeDef]], # (1)
- See BucketTypeDef
HitsTypeDef#
# HitsTypeDef definition
class HitsTypeDef(TypedDict):
found: NotRequired[int],
start: NotRequired[int],
cursor: NotRequired[str],
hit: NotRequired[List[HitTypeDef]], # (1)
- See HitTypeDef
UploadDocumentsResponseTypeDef#
# UploadDocumentsResponseTypeDef definition
class UploadDocumentsResponseTypeDef(TypedDict):
status: str,
adds: int,
deletes: int,
warnings: List[DocumentServiceWarningTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
SuggestModelTypeDef#
# SuggestModelTypeDef definition
class SuggestModelTypeDef(TypedDict):
query: NotRequired[str],
found: NotRequired[int],
suggestions: NotRequired[List[SuggestionMatchTypeDef]], # (1)
SearchResponseTypeDef#
# SearchResponseTypeDef definition
class SearchResponseTypeDef(TypedDict):
status: SearchStatusTypeDef, # (1)
hits: HitsTypeDef, # (2)
facets: Dict[str, BucketInfoTypeDef], # (3)
stats: Dict[str, FieldStatsTypeDef], # (4)
ResponseMetadata: ResponseMetadataTypeDef, # (5)
- See SearchStatusTypeDef
- See HitsTypeDef
- See BucketInfoTypeDef
- See FieldStatsTypeDef
- See ResponseMetadataTypeDef
SuggestResponseTypeDef#
# SuggestResponseTypeDef definition
class SuggestResponseTypeDef(TypedDict):
status: SuggestStatusTypeDef, # (1)
suggest: SuggestModelTypeDef, # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)