Skip to content

Interface for RuntimeField missing string option #2059

Closed
@MichaelOpitz2

Description

@MichaelOpitz2

🐛 Wrong type

Interface for RuntimeFieldType missing string option "composite"

Definition

Since Elasticsearch 7.15 the Runtime fields support "composite" fields:

The runtime section can be any of these data types:

    boolean
    composite
    date
    double
    geo_point
    ip
    keyword
    long

And the RuntimeField / RuntimeFieldBuilder is missing the related "fields" field / method.

Has this been forgotten to update or have "composite" Runtime fields been replaced by something else?

See also:
https://www.elastic.co/guide/en/elasticsearch/reference/8.7/search-search.html
"runtime_mappings"

runtime_mappings

    (Optional, object of objects) Defines one or more [runtime fields](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/runtime-search-request.html) in the search request. These fields take precedence over mapped fields with the same name.
    Properties of runtime_mappings objects

    <field-name>

        (Required, object) Configuration for the runtime field. The key is the field name.
        Properties of <field-name>

        type

            (Required, string) [Field type](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/mapping-types.html), which can be any of the following:

                boolean
                composite
                date
                double
                geo_point
                ip
                keyword
                long
                [lookup](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/runtime-retrieving-fields.html#lookup-runtime-fields)

        script

            (Optional, string) [Painless script](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/modules-scripting-using.html) executed at query time. The script has access to the entire context of a document, including the original _source and any mapped fields plus their values.

  

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions