summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorolcbean <olcbean@yahoo.com>2017-06-29 11:35:28 +0200
committerChristoph Büscher <christoph@elastic.co>2017-06-29 11:35:28 +0200
commit3518e313b81564d2868c834111d716997dd86033 (patch)
tree1a33138bf135ee90a97dd7997334f8e6d1e316d2 /plugins
parentda59c178e2cd39ac141c8e738ad692b94813eecd (diff)
Unify the result interfaces from get and search in Java client (#25361)
As GetField and SearchHitField have the same members, they have been unified into DocumentField. Closes #16440
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mapper-size/src/test/java/org/elasticsearch/index/mapper/size/SizeMappingIT.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mapper-size/src/test/java/org/elasticsearch/index/mapper/size/SizeMappingIT.java b/plugins/mapper-size/src/test/java/org/elasticsearch/index/mapper/size/SizeMappingIT.java
index 92cbb2e6e3..d3980c1911 100644
--- a/plugins/mapper-size/src/test/java/org/elasticsearch/index/mapper/size/SizeMappingIT.java
+++ b/plugins/mapper-size/src/test/java/org/elasticsearch/index/mapper/size/SizeMappingIT.java
@@ -111,6 +111,6 @@ public class SizeMappingIT extends ESIntegTestCase {
client().prepareIndex("test", "type", "1").setSource(source, XContentType.JSON));
GetResponse getResponse = client().prepareGet("test", "type", "1").setStoredFields("_size").get();
assertNotNull(getResponse.getField("_size"));
- assertEquals(source.length(), getResponse.getField("_size").getValue());
+ assertEquals(source.length(), (int) getResponse.getField("_size").getValue());
}
}