SearchItemPaged Class

Inheritance
SearchItemPaged

Constructor

SearchItemPaged(*args, **kwargs)

Methods

by_page

Get an iterator of pages of objects, instead of an iterator of objects.

get_answers

Return answers.

get_count

Return the count of results if include_total_count was set for the query.

get_coverage

Return the coverage percentage, if minimum_coverage was specificied for the query.

get_facets

Return any facet results if faceting was requested.

next

by_page

Get an iterator of pages of objects, instead of an iterator of objects.

by_page(continuation_token: str | None = None) -> Iterator[Iterator[ReturnType]]

Parameters

Name Description
continuation_token
str

An opaque continuation token. This value can be retrieved from the continuation_token field of a previous generator object. If specified, this generator will begin returning results from this point.

default value: None

Returns

Type Description
<xref:iterator>[<xref:iterator>[<xref:ReturnType>]]

An iterator of pages (themselves iterator of objects)

get_answers

Return answers.

get_answers() -> List[QueryAnswerResult] | None

Returns

Type Description

answers

get_count

Return the count of results if include_total_count was set for the query.

get_count() -> int

Returns

Type Description
int

count of results

get_coverage

Return the coverage percentage, if minimum_coverage was specificied for the query.

get_coverage() -> float

Returns

Type Description

coverage percentage

get_facets

Return any facet results if faceting was requested.

get_facets() -> Dict | None

Returns

Type Description
dict,

facet results

next

next() -> ReturnType