Skip to content

Cannot add multi-field index mapping for the LongField #3237

Open
@yuri-rs

Description

I'd like to have the following index template mapping:

  "mappings": {
    "properties": {
      "long_field": {
        "type": "long",
        "fields": {
          "str": {
            "type": "keyword"
          }
        }
      },
...

Please note that I have multi-field for a Long field and it works fine.
I can create such mapping using 8.x Kibana

But I cannot create the same mapping programmatically using elastic4s, because there is no fields parameter in
LongField.scala

How can I create the mapping above using elastic4s now?
In the past (6.x) it was possible using BasicField.fields

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions