parent/child field data is an exception to the rule, because it is based on two fields...

This commit is contained in:
Martijn van Groningen 2015-07-23 11:40:50 +02:00
parent 2d775c34c9
commit 948da82f90
1 changed files with 9 additions and 1 deletions

View File

@ -131,7 +131,15 @@ public class ParentChildIndexFieldData extends AbstractIndexFieldData<AtomicPare
}
};
} else {
return super.load(context);
try {
return cache.load(context, this);
} catch (Throwable e) {
if (e instanceof ElasticsearchException) {
throw (ElasticsearchException) e;
} else {
throw new ElasticsearchException(e.getMessage(), e);
}
}
}
}