diff --git a/Changelog.rst b/Changelog.rst index 5c3d25b2..36b71a58 100644 --- a/Changelog.rst +++ b/Changelog.rst @@ -3,6 +3,12 @@ Changelog ========= +8.17.0 (2024-12-13) +------------------- + +* Added support for quantized dense vector options (`#1948 `_) +* Added support for composable index templates (`#1943 `_) + 8.16.0 (2024-11-13) ------------------- diff --git a/elasticsearch_dsl/__init__.py b/elasticsearch_dsl/__init__.py index 55ca065e..03017e1a 100644 --- a/elasticsearch_dsl/__init__.py +++ b/elasticsearch_dsl/__init__.py @@ -102,7 +102,7 @@ from .utils import AttrDict, AttrList, DslBase from .wrappers import Range -VERSION = (8, 16, 0) +VERSION = (8, 17, 0) __version__ = VERSION __versionstr__ = ".".join(map(str, VERSION)) __all__ = [ diff --git a/elasticsearch_dsl/types.py b/elasticsearch_dsl/types.py index a08c4c7f..ebb18bb2 100644 --- a/elasticsearch_dsl/types.py +++ b/elasticsearch_dsl/types.py @@ -33,16 +33,16 @@ class AggregationRange(AttrDict[Any]): :arg to: End of the range (exclusive). """ - from_: Union[float, DefaultType] + from_: Union[float, None, DefaultType] key: Union[str, DefaultType] - to: Union[float, DefaultType] + to: Union[float, None, DefaultType] def __init__( self, *, - from_: Union[float, DefaultType] = DEFAULT, + from_: Union[float, None, DefaultType] = DEFAULT, key: Union[str, DefaultType] = DEFAULT, - to: Union[float, DefaultType] = DEFAULT, + to: Union[float, None, DefaultType] = DEFAULT, **kwargs: Any, ): if from_ is not DEFAULT: @@ -1226,7 +1226,6 @@ class HighlightField(AttrDict[Any]): """ :arg fragment_offset: :arg matched_fields: - :arg analyzer: :arg type: :arg boundary_chars: A string that contains each boundary character. Defaults to `.,!? \t\n` if omitted. @@ -1300,7 +1299,6 @@ class HighlightField(AttrDict[Any]): Sequence[Union[str, InstrumentedField]], DefaultType, ] - analyzer: Union[str, Dict[str, Any], DefaultType] type: Union[Literal["plain", "fvh", "unified"], DefaultType] boundary_chars: Union[str, DefaultType] boundary_max_scan: Union[int, DefaultType] @@ -1332,7 +1330,6 @@ def __init__( Sequence[Union[str, InstrumentedField]], DefaultType, ] = DEFAULT, - analyzer: Union[str, Dict[str, Any], DefaultType] = DEFAULT, type: Union[Literal["plain", "fvh", "unified"], DefaultType] = DEFAULT, boundary_chars: Union[str, DefaultType] = DEFAULT, boundary_max_scan: Union[int, DefaultType] = DEFAULT, @@ -1362,8 +1359,6 @@ def __init__( kwargs["fragment_offset"] = fragment_offset if matched_fields is not DEFAULT: kwargs["matched_fields"] = str(matched_fields) - if analyzer is not DEFAULT: - kwargs["analyzer"] = analyzer if type is not DEFAULT: kwargs["type"] = type if boundary_chars is not DEFAULT: diff --git a/setup.py b/setup.py index 6626fd80..cd8934ac 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ from setuptools import find_packages, setup -VERSION = (8, 16, 0) +VERSION = (8, 17, 0) __version__ = VERSION __versionstr__ = ".".join(map(str, VERSION))