field

class opensearchpy.helpers.field.Field(multi=False, required=False, *args, **kwargs)[source]

Bases: DslBase

Parameters:
  • multi (bool) – specifies whether field can contain array of values

  • required (bool) – specifies whether field is required

  • multi

  • required

  • args (Any) –

  • kwargs (Any) –

to_dict()[source]

Serialize the DSL object to plain dict

Return type:

Any