Skip to content

[Documentation] Document how to use the CreateIndexRequest, particularly the mappings #208

@cyrille-leclerc

Description

@cyrille-leclerc

Description

Could you please provide an example on how to use the CreateIndexRequest API, particularly how to define the mappings?

I didn't catch how to use the CreateIndexRequest.Builder#mappings() API to do something like

PUT /logs
{"mappings": {
    "properties": {
      "@timestamp": { "type": "date" },
      "message": { "type": "match_only_text" }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions