Search indexes domain
class yandex_cloud_ml_sdk._search_indexes.domain.SearchIndexes
A class for search indexes. It is a part of Assistants API and it provides the foundation for creating and managing search indexes.
create_deferred(files, *, index_type=Undefined, name=Undefined, description=Undefined, labels=Undefined, ttl_days=Undefined, expiration_policy=Undefined, timeout=60)
Create a deferred search index.
It returns an operation that can be used to track the creation process.
|
Parameters |
|
|
Return type |
get(search_index_id, *, timeout=60)
Retrieve a search index by its id.
This method fetches an already created search index using its unique identifier.
|
Parameters |
|
|
Return type |
list(*, page_size=Undefined, timeout=60)
List search indexes in the specified folder.
This method retrieves a list of search indexes. It continues to fetch search indexes until there are no more available.
|
Parameters |
|
|
Return type |
class yandex_cloud_ml_sdk._search_indexes.search_index.SearchIndex
update(*, name=Undefined, description=Undefined, labels=Undefined, ttl_days=Undefined, expiration_policy=Undefined, timeout=60)
Updates the search index with the provided parameters.
|
Parameters |
|
|
Return type |
delete(*, timeout=60)
Deletes the search index.
|
Parameters |
timeout (float |
|
Return type |
None |
get_file(file_id, *, timeout=60)
|
Parameters |
|
|
Return type |
list_files(*, page_size=Undefined, timeout=60)
Lists all files associated with the search index.
|
Parameters |
|
|
Return type |
add_files_deferred(files, *, timeout=60)
Adds files to the search index in a deferred manner.
|
Parameters |
|
|
Return type |
folder_id: str
the ID of the folder
the new name for the search index
the new description for the search index
created_by: str
the user who created the search index
created_at: datetime
the timestamp when the search index was created
updated_by: str
the user who last updated the search index
updated_at: datetime
the timestamp when the search index was last updated
expires_at: datetime
the expiration date and time of the search index
a dictionary of labels to associate with the search index
index_type: BaseSearchIndexType
the type of the search index
expiration_config: ExpirationConfig
id: str