Real time get on a stored _size field does not return its value, closes #1724.

This commit is contained in:
Shay Banon 2012-02-21 18:09:55 +02:00
parent d5fcb0d52c
commit 7ff12a5bd9
1 changed files with 2 additions and 0 deletions

View File

@ -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) {