From 7c04ef6cbccf472a80426a0eddb1679e5e6071a5 Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 13 Mar 2011 00:51:12 +0200 Subject: [PATCH] use byte value --- .../index/field/data/bytes/ByteFieldDataComparator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/field/data/bytes/ByteFieldDataComparator.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/field/data/bytes/ByteFieldDataComparator.java index 51e7d60e585..1123dd9a182 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/field/data/bytes/ByteFieldDataComparator.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/field/data/bytes/ByteFieldDataComparator.java @@ -46,7 +46,7 @@ public class ByteFieldDataComparator extends NumericFieldDataComparator { } @Override public int compareBottom(int doc) { - return bottom - currentFieldData.shortValue(doc); + return bottom - currentFieldData.byteValue(doc); } @Override public void copy(int slot, int doc) {