@@ -305,7 +305,7 @@ public void shouldUseIgnoreAbove() throws JSONException {
305
305
assertEquals (expected , mapping , false );
306
306
}
307
307
308
- @ Test // DATAES-621, DATAES-943
308
+ @ Test // DATAES-621, DATAES-943, DATAES-946
309
309
public void shouldSetFieldMappingProperties () throws JSONException {
310
310
String expected = "{\n " + //
311
311
" \" properties\" : {\n " + //
@@ -399,6 +399,14 @@ public void shouldSetFieldMappingProperties() throws JSONException {
399
399
" },\n " + //
400
400
" \" eagerGlobalOrdinalsFalse\" : {\n " + //
401
401
" \" type\" : \" text\" \n " + //
402
+ " },\n " + //
403
+ " \" wildcardWithoutParams\" : {\n " + //
404
+ " \" type\" : \" wildcard\" \n " + //
405
+ " },\n " + //
406
+ " \" wildcardWithParams\" : {\n " + //
407
+ " \" type\" : \" wildcard\" ,\n " + //
408
+ " \" null_value\" : \" WILD\" ,\n " + //
409
+ " \" ignore_above\" : 42\n " + //
402
410
" }\n " + //
403
411
" }\n " + //
404
412
"}\n " ; //
@@ -891,6 +899,8 @@ static class FieldMappingParameters {
891
899
@ Nullable @ Field (type = Object , enabled = false ) private String disabledObject ;
892
900
@ Nullable @ Field (type = Text , eagerGlobalOrdinals = true ) private String eagerGlobalOrdinalsTrue ;
893
901
@ Nullable @ Field (type = Text , eagerGlobalOrdinals = false ) private String eagerGlobalOrdinalsFalse ;
902
+ @ Nullable @ Field (type = Wildcard ) private String wildcardWithoutParams ;
903
+ @ Nullable @ Field (type = Wildcard , nullValue = "WILD" , ignoreAbove = 42 ) private String wildcardWithParams ;
894
904
}
895
905
896
906
@ Document (indexName = "test-index-configure-dynamic-mapping" )
@@ -945,12 +955,10 @@ static class EntityWithSeqNoPrimaryTerm {
945
955
946
956
@ Data
947
957
static class RankFeatureEntity {
948
- @ Id private String id ;
949
958
959
+ @ Id private String id ;
950
960
@ Field (type = FieldType .Rank_Feature ) private Integer pageRank ;
951
-
952
961
@ Field (type = FieldType .Rank_Feature , positiveScoreImpact = false ) private Integer urlLength ;
953
-
954
962
@ Field (type = FieldType .Rank_Features ) private Map <String , Integer > topics ;
955
963
}
956
964
}
0 commit comments