when asking for _source with script fields, the _source is not returned.
This commit is contained in:
parent
c5387be07c
commit
6823d50840
|
@ -145,7 +145,7 @@ public class FetchPhase implements SearchPhase {
|
||||||
fieldSelectorMapper.add(SourceFieldMapper.NAME);
|
fieldSelectorMapper.add(SourceFieldMapper.NAME);
|
||||||
}
|
}
|
||||||
fieldSelector = fieldSelectorMapper;
|
fieldSelector = fieldSelectorMapper;
|
||||||
} else if (extractFieldNames != null) {
|
} else if (extractFieldNames != null || sourceRequested) {
|
||||||
fieldSelector = new UidAndSourceFieldSelector();
|
fieldSelector = new UidAndSourceFieldSelector();
|
||||||
} else {
|
} else {
|
||||||
fieldSelector = UidFieldSelector.INSTANCE;
|
fieldSelector = UidFieldSelector.INSTANCE;
|
||||||
|
|
Loading…
Reference in New Issue