Support fields in synthetic source in last cases (#91595)

This adds support for the `fields` API from painless in to synthetic
_source for `text` fields that have a keyword sub field. This is kind of
esoteric sounding, but it's the default mapping for strings you send in
json so synthetic `_source` supports it. So the `fields` API should too.
This commit is contained in:
Nik Everett 2022-11-16 13:47:48 -05:00 committed by GitHub
parent c772e0fc0e
commit c71aa06463
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 124 additions and 105 deletions

View file

@ -480,7 +480,7 @@ public class AnnotatedTextFieldMapper extends FieldMapper {
boolean isSyntheticSource,
Map<String, String> meta
) {
super(name, true, store, tsi, isSyntheticSource, meta);
super(name, true, store, tsi, isSyntheticSource, null, meta);
}
public AnnotatedTextFieldType(String name, Map<String, String> meta) {