added TODO

This commit is contained in:
Martijn van Groningen 2015-11-02 23:33:34 +07:00
parent 7b3c034caf
commit 376c739fe6
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ public final class Data {
@SuppressWarnings("unchecked")
public <T> T getProperty(String path) {
// TODO: we should not rely on any core class, so we should have custom map extract value logic:
// also XContentMapValues has no support to get specific values from arrays, see: https://github.com/elastic/elasticsearch/issues/14324
return (T) XContentMapValues.extractValue(path, document);
}