mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 09:29:11 +00:00
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…
x
Reference in New Issue
Block a user