Repository navigation
ESORM 0.8.1 adds raw search responses and fixes public API typing and several runtime edge cases.
New feature
- Add
ESModel.search_raw()to return the raw Elasticsearch/OpenSearch search response, including hit metadata and responses requested with_source=False. It supports builder queries, aggregations, model default sorting, and thePaginationandSortdecorators.
Fixes
- Accept sequences of hosts, including tuples, in
connect()and normalize them to the list expected by the clients. - Fix
retry_on_conflict()when the decorated function is called with keyword arguments only, and preserve the decorated function's parameter and return types. - Make
from_es()raiseInvalidResponseErrorfor an empty response instead of returningNone; its return type now reflects that a valid response produces a model. - Avoid the Pydantic 2.11 deprecation warning when excluding computed fields from serialized documents.
- Complete public API annotations for bulk operations, field types, connection helpers, and FastAPI utilities. Add strict pyright coverage to the type-checking tests.
Full changelog: v0.8.0...v0.8.1