Real time get on a stored _size field does not return its value, closes #1724.
This commit is contained in:
parent
d5fcb0d52c
commit
7ff12a5bd9
|
@ -266,6 +266,8 @@ public class ShardGetService extends AbstractIndexShardComponent {
|
|||
if (source.ttl > 0) {
|
||||
value = docMapper.TTLFieldMapper().valueForSearch(source.timestamp + source.ttl);
|
||||
}
|
||||
} else if (field.equals(SizeFieldMapper.NAME) && docMapper.rootMapper(SizeFieldMapper.class).stored()) {
|
||||
value = source.source.length();
|
||||
} else {
|
||||
if (field.contains("_source.")) {
|
||||
if (searchLookup == null) {
|
||||
|
|
Loading…
Reference in New Issue