File tree 1 file changed +2
-1
lines changed
server/src/test/java/org/opensearch/index/mapper
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 15
15
import org .apache .lucene .document .LatLonPoint ;
16
16
import org .apache .lucene .document .LongField ;
17
17
import org .apache .lucene .document .LongPoint ;
18
+ import org .opensearch .common .collect .Tuple ;
18
19
import org .opensearch .script .Script ;
19
20
20
21
import java .util .List ;
@@ -51,7 +52,7 @@ public void testDateType() {
51
52
public void testGeoPointType () {
52
53
DerivedFieldType dft = createDerivedFieldType ("geo_point" );
53
54
assertTrue (dft .typeFieldMapper instanceof GeoPointFieldMapper );
54
- assertTrue (dft .indexableFieldGenerator .apply (List . of (10.0 , 20.0 )) instanceof LatLonPoint );
55
+ assertTrue (dft .indexableFieldGenerator .apply (new Tuple <> (10.0 , 20.0 )) instanceof LatLonPoint );
55
56
expectThrows (ClassCastException .class , () -> dft .indexableFieldGenerator .apply (List .of (10.0 )));
56
57
expectThrows (ClassCastException .class , () -> dft .indexableFieldGenerator .apply (List .of ()));
57
58
expectThrows (ClassCastException .class , () -> dft .indexableFieldGenerator .apply (List .of ("10" )));
You can’t perform that action at this time.
0 commit comments