Skip to content

Ability to explicitly pass an index/type for a document through it metadata #991

@ov7a

Description

@ov7a

Feature description

Start of discussion: #990 (comment)

Currently, if one wants to use complex logic for getting index name for document, there are two options:

  1. Use patterns to construct an index name
  2. Implement index name as part of transformation steps before persisting to Elasticsearch and add extra field to resulting document.

If logic is very complex then the first option is either to hard or impossible to implement. With the second option, extra field can be eliminated with es.mapping.exclude feature.

Unfortunately, es.mapping.exclude feature is ignored when es.input.json is specified. So, currently it is impossible to use complex logic, json input and have no extra fields in mapping.

I propose to add an INDEX option to document metadata to provide an explicit index for document.

Same thoughts can be applied to type of a document.

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