Skip to content

hopsworks.core.opensearch #

OpensearchRequestOption #

For backwards compatibility hopsworks.core.opensearch.OpensearchRequestOption is still available as hsfs.core.opensearch.OpensearchRequestOption. The use of this alias is discouraged as it is to be deprecated.

get_version classmethod #

get_version() -> tuple[int, int]

Get the major and minor version of the opensearch client.

RETURNS DESCRIPTION
tuple[int, int]

A tuple containing the major and minor version of the opensearch client.

get_options classmethod #

get_options(options: dict) -> dict

Construct a map of options for the request to the vector database.

PARAMETER DESCRIPTION
options

The options used for the request to the vector database. The keys are attribute values of the OpensearchRequestOption class.

TYPE: dict

RETURNS DESCRIPTION
dict

A dictionary containing the constructed options map, where keys represent attribute values of the OpensearchRequestOption class, and values are obtained either from the provided options or default values if not available.