File tree 1 file changed +1
-9
lines changed
server/src/test/java/org/elasticsearch/index/mapper 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 8
8
9
9
package org .elasticsearch .index .mapper ;
10
10
11
- import org .apache .lucene .document .HalfFloatPoint ;
12
11
import org .elasticsearch .common .xcontent .XContentBuilder ;
13
12
import org .elasticsearch .index .mapper .NumberFieldMapper .NumberType ;
14
13
import org .elasticsearch .index .mapper .NumberFieldTypeTests .OutOfRangeSpec ;
@@ -43,13 +42,6 @@ protected void minimalMapping(XContentBuilder b) throws IOException {
43
42
44
43
@ Override
45
44
protected Number randomNumber () {
46
- /*
47
- * The native valueFetcher returns 32 bits of precision but the
48
- * doc values fetcher returns 16 bits of precision. To make it
49
- * all line up we round here instead of in the fetcher. This bug
50
- * is tracked in:
51
- * https://github.com/elastic/elasticsearch/issues/70260
52
- */
53
- return HalfFloatPoint .sortableShortToHalfFloat (HalfFloatPoint .halfFloatToSortableShort (randomFloat ()));
45
+ return randomBoolean () ? randomFloat () : randomDoubleBetween (-65504 , 65504 , true );
54
46
}
55
47
}
You can’t perform that action at this time.
0 commit comments