diff --git a/src/main/java/org/elasticsearch/index/engine/Engine.java b/src/main/java/org/elasticsearch/index/engine/Engine.java index e08d2cb4f0c..02c59758c12 100644 --- a/src/main/java/org/elasticsearch/index/engine/Engine.java +++ b/src/main/java/org/elasticsearch/index/engine/Engine.java @@ -475,7 +475,7 @@ public interface Engine extends IndexShardComponent, CloseableComponent { } public UidField uidField() { - return (UidField) doc.rootDoc().getFieldable(UidFieldMapper.NAME); + return (UidField) doc.rootDoc().getField(UidFieldMapper.NAME); } @@ -603,7 +603,7 @@ public interface Engine extends IndexShardComponent, CloseableComponent { } public UidField uidField() { - return (UidField) doc.rootDoc().getFieldable(UidFieldMapper.NAME); + return (UidField) doc.rootDoc().getField(UidFieldMapper.NAME); } public Index startTime(long startTime) {