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);
|
||||
}
|
||||
fieldSelector = fieldSelectorMapper;
|
||||
} else if (extractFieldNames != null) {
|
||||
} else if (extractFieldNames != null || sourceRequested) {
|
||||
fieldSelector = new UidAndSourceFieldSelector();
|
||||
} else {
|
||||
fieldSelector = UidFieldSelector.INSTANCE;
|
||||
|
|
Loading…
Reference in New Issue