elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.89k stars 24.72k forks source link

Remove restrictions on flattened field keys #90311

Open jtibshirani opened 2 years ago

jtibshirani commented 2 years ago

Currently, the flattened field type does not allow keys to contain the \0 character. This is because the field type uses \0 internally as a separator. Some users use flattened with messy data that's outside their control, and run into this restriction. Here's an example from the transform feature, which adds the result of a terms aggregation to a flattened field: #75875.

Maybe we could consider adding automatic escaping in flattened to avoid this restriction.

elasticsearchmachine commented 2 years ago

Pinging @elastic/es-search (Team:Search)

elasticsearchmachine commented 3 months ago

Pinging @elastic/es-search-foundations (Team:Search Foundations)