snowflake.core.cortex.search_service.CortexSearchServiceResource¶

class snowflake.core.cortex.search_service.CortexSearchServiceResource(name: str, collection: CortexSearchServiceCollection)¶

Bases: SchemaObjectReferenceMixin[CortexSearchServiceCollection]

Attributes

database¶
fully_qualified_name¶
root¶

Methods

search(query: str, columns: list[str], filter: dict[str, Any] | None = None, limit: int = 10, **kwargs: Any) → QueryResponse¶
search_async(query: str, columns: list[str], filter: dict[str, Any] | None = None, limit: int = 10, **kwargs: Any) → PollingOperation[QueryResponse]¶

An asynchronous version of search().

Refer to PollingOperation for more information on asynchronous execution and the return type.