mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
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:
parent
c772e0fc0e
commit
c71aa06463
5 changed files with 124 additions and 105 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue