elastic / elasticsearch

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

Support synthetic source for fields with normalizers enabled #110039

Open martijnvg opened 3 months ago

martijnvg commented 3 months ago

Today synthetic source can't be configured if a mapping contains keyword fields with normalizers. The reason why this is disallowed, is that when documents get reindexed we can't synthesize from doc values because the original value was altered.

In order to support synthetic source when normalizers are enabled, we should enforce storing these fields, so that we can synthesize from stored fields and avoid the potential accuracy loss at reindex time.

elasticsearchmachine commented 3 months ago

Pinging @elastic/es-storage-engine (Team:StorageEngine)