elasticsearch
elasticsearch copied to clipboard
Synthetic _source: support `field` in many cases
This adds support for the field
scripting API in many but not all cases. Before this change numbers, dates, and IPs supported the field
API when running with _source in synthetic mode because they always have doc values. This change adds support for match_only_text
, store
d keyword
fields, and store
d text
fields. Two remaining field configurations work with synthetic _source and do not work with field
:
- A
text
field with a sub-keyword
field that hasdoc_values
- A
text
field with a sub-keyword
field that isstore
d
Pinging @elastic/es-analytics-geo (Team:Analytics)
Hi @nik9000, I've created a changelog YAML for you.
Pinging @elastic/es-search (Team:Search)
@romseygeek could you have another look? It's much bigger now....
run elasticsearch-ci/part-1
run elasticsearch-ci/part-1
So I know that I asked for the information about synthetic source to be moved to FieldDataContext but I have, annoyingly, changed my mind about that again. FDC holds information at the context in which field data is being asked for, and synthetic source is entirely orthogonal to that. I've opened #91400 to move this to MapperBuilderContext, which I think will fit better here as well - field types can get a constructor parameter telling them if they need to load things from a secret stored field or just use source.