Skip to content

Rethink how to index nested documents when types are gone #24362

@jpountz

Description

@jpountz

Currently nested documents reuse the _type field in order to identify root documents from children: the value of the type field starts with __ for children. However with types going away, we would probably like to stop indexing the _type field so we would need to find other ways to identify root/children.

For efficiency reasons, we need a fast query that identifies root documents. One way we could do that would be by adding a special field/value pair to root documents. However, we would probably only want to do that when there are nested mappings, which means we would have to reject adding nested objects to existing mappings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions