requesting fields=_timestamp,_source won't return _source, closes #1833.

This commit is contained in:
Shay Banon 2012-04-03 12:48:57 +03:00
parent b3866689fa
commit 2c4f7d1fc3
1 changed files with 1 additions and 1 deletions

View File

@ -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;