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 ;
@@ -42,13 +41,6 @@ protected void minimalMapping(XContentBuilder b) throws IOException {
42
41
43
42
@ Override
44
43
protected Number randomNumber () {
45
- /*
46
- * The native valueFetcher returns 32 bits of precision but the
47
- * doc values fetcher returns 16 bits of precision. To make it
48
- * all line up we round here instead of in the fetcher. This bug
49
- * is tracked in:
50
- * https://github.com/elastic/elasticsearch/issues/70260
51
- */
52
- return HalfFloatPoint .sortableShortToHalfFloat (HalfFloatPoint .halfFloatToSortableShort (randomFloat ()));
44
+ return randomBoolean () ? randomFloat () : randomDoubleBetween (-65504 , 65504 , true );
53
45
}
54
46
}
You can’t perform that action at this time.
0 commit comments