From 1d79a8dfbcf89c57d6108a872ed118325827018e Mon Sep 17 00:00:00 2001 From: gashutos Date: Thu, 14 Sep 2023 11:34:51 +0530 Subject: [PATCH] Index sort print --- .../index/fielddata/IndexNumericFieldData.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java b/server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java index afd2ffce1002c..fc040b75c58f1 100644 --- a/server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java +++ b/server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java @@ -163,15 +163,7 @@ public final SortField sortField(Object missingValue, MultiValueMode sortMode, N @Override public final SortField indexSortField(Object missingValue, MultiValueMode sortMode, Nested nested, boolean reverse) { - NumericType type = getNumericType(); - switch(type) { - case BYTE: - case BOOLEAN: - case SHORT: - case INT: - type = NumericType.LONG; - } - return sortField(type, missingValue, sortMode, nested, reverse, true); + return sortField(getNumericType(), missingValue, sortMode, nested, reverse, true); } /**