requesting fields=_timestamp,_source won't return _source, closes #1833.
This commit is contained in:
parent
b3866689fa
commit
2c4f7d1fc3
|
@ -141,7 +141,7 @@ public class FetchPhase implements SearchPhase {
|
|||
} else if (fieldSelectorMapper != null) {
|
||||
// we are asking specific stored fields, just add the UID and be done
|
||||
fieldSelectorMapper.add(UidFieldMapper.NAME);
|
||||
if (extractFieldNames != null) {
|
||||
if (extractFieldNames != null || sourceRequested) {
|
||||
fieldSelectorMapper.add(SourceFieldMapper.NAME);
|
||||
}
|
||||
fieldSelector = fieldSelectorMapper;
|
||||
|
|
Loading…
Reference in New Issue