@@ -584,6 +584,7 @@ class AggregateMetricDouble(Field):
584584 """
585585 :arg default_metric: (required)
586586 :arg metrics: (required)
587+ :arg ignore_malformed:
587588 :arg time_series_metric:
588589 :arg meta: Metadata about the field.
589590 :arg properties:
@@ -604,6 +605,7 @@ def __init__(
604605 * args : Any ,
605606 default_metric : Union [str , "DefaultType" ] = DEFAULT ,
606607 metrics : Union [Sequence [str ], "DefaultType" ] = DEFAULT ,
608+ ignore_malformed : Union [bool , "DefaultType" ] = DEFAULT ,
607609 time_series_metric : Union [
608610 Literal ["gauge" , "counter" , "summary" , "histogram" , "position" ],
609611 "DefaultType" ,
@@ -624,6 +626,8 @@ def __init__(
624626 kwargs ["default_metric" ] = default_metric
625627 if metrics is not DEFAULT :
626628 kwargs ["metrics" ] = metrics
629+ if ignore_malformed is not DEFAULT :
630+ kwargs ["ignore_malformed" ] = ignore_malformed
627631 if time_series_metric is not DEFAULT :
628632 kwargs ["time_series_metric" ] = time_series_metric
629633 if meta is not DEFAULT :
@@ -1798,6 +1802,7 @@ class Flattened(Field):
17981802 :arg null_value:
17991803 :arg similarity:
18001804 :arg split_queries_on_whitespace:
1805+ :arg time_series_dimensions:
18011806 :arg meta: Metadata about the field.
18021807 :arg properties:
18031808 :arg ignore_above:
@@ -1826,6 +1831,7 @@ def __init__(
18261831 null_value : Union [str , "DefaultType" ] = DEFAULT ,
18271832 similarity : Union [str , "DefaultType" ] = DEFAULT ,
18281833 split_queries_on_whitespace : Union [bool , "DefaultType" ] = DEFAULT ,
1834+ time_series_dimensions : Union [Sequence [str ], "DefaultType" ] = DEFAULT ,
18291835 meta : Union [Mapping [str , str ], "DefaultType" ] = DEFAULT ,
18301836 properties : Union [Mapping [str , Field ], "DefaultType" ] = DEFAULT ,
18311837 ignore_above : Union [int , "DefaultType" ] = DEFAULT ,
@@ -1856,6 +1862,8 @@ def __init__(
18561862 kwargs ["similarity" ] = similarity
18571863 if split_queries_on_whitespace is not DEFAULT :
18581864 kwargs ["split_queries_on_whitespace" ] = split_queries_on_whitespace
1865+ if time_series_dimensions is not DEFAULT :
1866+ kwargs ["time_series_dimensions" ] = time_series_dimensions
18591867 if meta is not DEFAULT :
18601868 kwargs ["meta" ] = meta
18611869 if properties is not DEFAULT :
@@ -1957,6 +1965,7 @@ class GeoPoint(Field):
19571965 :arg index:
19581966 :arg on_script_error:
19591967 :arg script:
1968+ :arg time_series_metric:
19601969 :arg doc_values:
19611970 :arg copy_to:
19621971 :arg store:
@@ -1990,6 +1999,9 @@ def __init__(
19901999 index : Union [bool , "DefaultType" ] = DEFAULT ,
19912000 on_script_error : Union [Literal ["fail" , "continue" ], "DefaultType" ] = DEFAULT ,
19922001 script : Union ["types.Script" , Dict [str , Any ], "DefaultType" ] = DEFAULT ,
2002+ time_series_metric : Union [
2003+ Literal ["gauge" , "counter" , "position" ], "DefaultType"
2004+ ] = DEFAULT ,
19932005 doc_values : Union [bool , "DefaultType" ] = DEFAULT ,
19942006 copy_to : Union [
19952007 Union [str , "InstrumentedField" ],
@@ -2021,6 +2033,8 @@ def __init__(
20212033 kwargs ["on_script_error" ] = on_script_error
20222034 if script is not DEFAULT :
20232035 kwargs ["script" ] = script
2036+ if time_series_metric is not DEFAULT :
2037+ kwargs ["time_series_metric" ] = time_series_metric
20242038 if doc_values is not DEFAULT :
20252039 kwargs ["doc_values" ] = doc_values
20262040 if copy_to is not DEFAULT :
@@ -3536,6 +3550,62 @@ def __init__(
35363550 super ().__init__ (* args , ** kwargs )
35373551
35383552
3553+ class RankVectors (Field ):
3554+ """
3555+ Technical preview
3556+
3557+ :arg element_type:
3558+ :arg dims:
3559+ :arg meta: Metadata about the field.
3560+ :arg properties:
3561+ :arg ignore_above:
3562+ :arg dynamic:
3563+ :arg fields:
3564+ :arg synthetic_source_keep:
3565+ """
3566+
3567+ name = "rank_vectors"
3568+ _param_defs = {
3569+ "properties" : {"type" : "field" , "hash" : True },
3570+ "fields" : {"type" : "field" , "hash" : True },
3571+ }
3572+
3573+ def __init__ (
3574+ self ,
3575+ * args : Any ,
3576+ element_type : Union [Literal ["byte" , "float" , "bit" ], "DefaultType" ] = DEFAULT ,
3577+ dims : Union [int , "DefaultType" ] = DEFAULT ,
3578+ meta : Union [Mapping [str , str ], "DefaultType" ] = DEFAULT ,
3579+ properties : Union [Mapping [str , Field ], "DefaultType" ] = DEFAULT ,
3580+ ignore_above : Union [int , "DefaultType" ] = DEFAULT ,
3581+ dynamic : Union [
3582+ Literal ["strict" , "runtime" , "true" , "false" ], bool , "DefaultType"
3583+ ] = DEFAULT ,
3584+ fields : Union [Mapping [str , Field ], "DefaultType" ] = DEFAULT ,
3585+ synthetic_source_keep : Union [
3586+ Literal ["none" , "arrays" , "all" ], "DefaultType"
3587+ ] = DEFAULT ,
3588+ ** kwargs : Any ,
3589+ ):
3590+ if element_type is not DEFAULT :
3591+ kwargs ["element_type" ] = element_type
3592+ if dims is not DEFAULT :
3593+ kwargs ["dims" ] = dims
3594+ if meta is not DEFAULT :
3595+ kwargs ["meta" ] = meta
3596+ if properties is not DEFAULT :
3597+ kwargs ["properties" ] = properties
3598+ if ignore_above is not DEFAULT :
3599+ kwargs ["ignore_above" ] = ignore_above
3600+ if dynamic is not DEFAULT :
3601+ kwargs ["dynamic" ] = dynamic
3602+ if fields is not DEFAULT :
3603+ kwargs ["fields" ] = fields
3604+ if synthetic_source_keep is not DEFAULT :
3605+ kwargs ["synthetic_source_keep" ] = synthetic_source_keep
3606+ super ().__init__ (* args , ** kwargs )
3607+
3608+
35393609class ScaledFloat (Float ):
35403610 """
35413611 :arg null_value:
@@ -4010,6 +4080,7 @@ def __init__(
40104080
40114081class SparseVector (Field ):
40124082 """
4083+ :arg store:
40134084 :arg meta: Metadata about the field.
40144085 :arg properties:
40154086 :arg ignore_above:
@@ -4027,6 +4098,7 @@ class SparseVector(Field):
40274098 def __init__ (
40284099 self ,
40294100 * args : Any ,
4101+ store : Union [bool , "DefaultType" ] = DEFAULT ,
40304102 meta : Union [Mapping [str , str ], "DefaultType" ] = DEFAULT ,
40314103 properties : Union [Mapping [str , Field ], "DefaultType" ] = DEFAULT ,
40324104 ignore_above : Union [int , "DefaultType" ] = DEFAULT ,
@@ -4039,6 +4111,8 @@ def __init__(
40394111 ] = DEFAULT ,
40404112 ** kwargs : Any ,
40414113 ):
4114+ if store is not DEFAULT :
4115+ kwargs ["store" ] = store
40424116 if meta is not DEFAULT :
40434117 kwargs ["meta" ] = meta
40444118 if properties is not DEFAULT :
0 commit comments