From 774622abfb6ca73f76987ffedccaa735501d9ba0 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Mon, 4 Mar 2013 23:50:33 +0100 Subject: [PATCH] Change field data stats header from `field_data` to `fielddata`. fixes #2727 --- .../org/elasticsearch/index/fielddata/FieldDataStats.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/fielddata/FieldDataStats.java b/src/main/java/org/elasticsearch/index/fielddata/FieldDataStats.java index 33f898f02b0..27bea2bf32c 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/FieldDataStats.java +++ b/src/main/java/org/elasticsearch/index/fielddata/FieldDataStats.java @@ -82,7 +82,7 @@ public class FieldDataStats implements Streamable, ToXContent { @Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { - builder.startObject(Fields.FIELD_DATA); + builder.startObject(Fields.FIELDDATA); builder.field(Fields.MEMORY_SIZE, getMemorySize().toString()); builder.field(Fields.MEMORY_SIZE_IN_BYTES, memorySize); builder.field(Fields.EVICTIONS, getEvictions()); @@ -91,7 +91,7 @@ public class FieldDataStats implements Streamable, ToXContent { } static final class Fields { - static final XContentBuilderString FIELD_DATA = new XContentBuilderString("field_data"); + static final XContentBuilderString FIELDDATA = new XContentBuilderString("fielddata"); static final XContentBuilderString MEMORY_SIZE = new XContentBuilderString("memory_size"); static final XContentBuilderString MEMORY_SIZE_IN_BYTES = new XContentBuilderString("memory_size_in_bytes"); static final XContentBuilderString EVICTIONS = new XContentBuilderString("evictions");