From dc28151ad77df81fc8b77b7ecf0ebe9d0430ffee Mon Sep 17 00:00:00 2001 From: Andrii Gakhov Date: Mon, 4 Mar 2013 11:19:33 +0100 Subject: [PATCH] fixed interchanged values in field_data stats fixes #2724 --- .../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 f9255ab2dd5..33f898f02b0 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/FieldDataStats.java +++ b/src/main/java/org/elasticsearch/index/fielddata/FieldDataStats.java @@ -83,8 +83,8 @@ public class FieldDataStats implements Streamable, ToXContent { @Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.FIELD_DATA); - builder.field(Fields.MEMORY_SIZE, memorySize); - builder.field(Fields.MEMORY_SIZE_IN_BYTES, getMemorySize().toString()); + builder.field(Fields.MEMORY_SIZE, getMemorySize().toString()); + builder.field(Fields.MEMORY_SIZE_IN_BYTES, memorySize); builder.field(Fields.EVICTIONS, getEvictions()); builder.endObject(); return builder;