Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import org.elasticsearch.datageneration.FieldType;
import org.elasticsearch.index.mapper.BlockLoaderTestCase;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
Expand Down Expand Up @@ -82,12 +80,6 @@ public static Object expectedValue(Map<String, Object> fieldMapping, Object valu
.map(BytesRef::new)
.collect(Collectors.toList());

if (store == false) {
// using doc_values for synthetic source
indexed = new ArrayList<>(new HashSet<>(indexed));
indexed.sort(BytesRef::compareTo);
}

// ignored values always come last
List<BytesRef> ignored = values.stream()
.map(s -> s == null ? nullValue : s)
Expand Down