From 376c739fe6890009a88aadacf02d563a212f19a2 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 2 Nov 2015 23:33:34 +0700 Subject: [PATCH] added TODO --- plugins/ingest/src/main/java/org/elasticsearch/ingest/Data.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/ingest/src/main/java/org/elasticsearch/ingest/Data.java b/plugins/ingest/src/main/java/org/elasticsearch/ingest/Data.java index 4ba41c113d4..66b81e8fe83 100644 --- a/plugins/ingest/src/main/java/org/elasticsearch/ingest/Data.java +++ b/plugins/ingest/src/main/java/org/elasticsearch/ingest/Data.java @@ -49,6 +49,8 @@ public final class Data { @SuppressWarnings("unchecked") public 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); }