meilisearch.models package
Submodules
meilisearch.models.document module
meilisearch.models.index module
- class meilisearch.models.index.Embedders(*args: Any, **kwargs: Any)[source]
Bases:
CamelBase
- embedders: Dict[str, OpenAiEmbedder | HuggingFaceEmbedder | UserProvidedEmbedder]
- class meilisearch.models.index.Faceting(*args: Any, **kwargs: Any)[source]
Bases:
CamelBase
- max_values_per_facet: int
- sort_facet_values_by: Dict[str, str] | None = None
- class meilisearch.models.index.HuggingFaceEmbedder(*args: Any, **kwargs: Any)[source]
Bases:
CamelBase
- document_template: str | None = None
- document_template_max_bytes: int | None = None
- model: str | None = None
- revision: str | None = None
- source: str = 'huggingFace'
- class meilisearch.models.index.MinWordSizeForTypos(*args: Any, **kwargs: Any)[source]
Bases:
CamelBase
- one_typo: int | None = None
- two_typos: int | None = None
- class meilisearch.models.index.OpenAiEmbedder(*args: Any, **kwargs: Any)[source]
Bases:
CamelBase
- api_key: str | None = None
- dimensions: int | None = None
- document_template: str | None = None
- document_template_max_bytes: int | None = None
- model: str | None = None
- source: str = 'openAi'
- class meilisearch.models.index.Pagination(*args: Any, **kwargs: Any)[source]
Bases:
CamelBase
- max_total_hits: int
- class meilisearch.models.index.ProximityPrecision(value)[source]
Bases:
str
,Enum
An enumeration.
- BY_ATTRIBUTE = 'byAttribute'
- BY_WORD = 'byWord'
meilisearch.models.key module
- class meilisearch.models.key.Key(*args: Any, **kwargs: Any)[source]
Bases:
_KeyBase
- created_at: datetime
- key: str
- updated_at: datetime | None = None
- class meilisearch.models.key.KeyUpdate(*args: Any, **kwargs: Any)[source]
Bases:
CamelBase
- actions: List[str] | None = None
- description: str | None = None
- expires_at: datetime | None = None
- indexes: List[str] | None = None
- key: str
- model_config = {'ser_json_timedelta': 'iso8601'}
- name: str | None = None
meilisearch.models.task module
- class meilisearch.models.task.Task(*args: Any, **kwargs: Any)[source]
Bases:
CamelBase
- canceled_by: int | None = None
- details: Dict[str, Any] | None = None
- duration: str | None = None
- enqueued_at: datetime
- error: Dict[str, Any] | None = None
- finished_at: datetime | None = None
- index_uid: str | None = None
- started_at: datetime | None = None
- status: str
- type: str
- uid: int