ansys.tools.meilisearch.client#
Module providing the Meilisearch client.
Classes#
Provides the base class for the Meilisearch client. |
|
Provides for scraping documents and indexing content in Meilisearch. |
Module Contents#
- class ansys.tools.meilisearch.client.BaseClient(meilisearch_host_url=None, meilisearch_api_key=None)#
Provides the base class for the Meilisearch client.
Initialize the Meilisearch client.
- Parameters:
- Raises:
RuntimeError
If the
meilisearch_host_url
ormeilisearch_api_key
parameter isNone
and the corresponding environment variable is not set.
- property meilisearch_api_key#
Meilisearch API key.
- property meilisearch_host_url#
Meilisearch host URL.
- class ansys.tools.meilisearch.client.MeilisearchClient(meilisearch_host_url=None, meilisearch_api_key=None)#
Bases:
BaseClient
Provides for scraping documents and indexing content in Meilisearch.
If no values are passed for the
meilisearch_host_url
ormeilisearch_api_key
parameters, the constructor checks for their values in environment variables.Initialize a new instance of the
MeilisearchClient
class.- Parameters:
- Raises:
RuntimeError
If the
MEILISEARCH_HOST_URL
orMEILISEARCH_API_KEY
environment variables are not set and no values are passed to the constructor for initializing a new instance of theMeilisearchClient
class.
- property client#
Meilisearch client.