@@ -1006,7 +1006,10 @@ public void test_value_is_not_ignored_when_it_exceeds_ignore_above_and_field_is_
10061006 KeywordFieldMapper mapper = (KeywordFieldMapper ) mapperService .documentMapper ().mappers ().getMapper ("potato" );
10071007
10081008 // then
1009- assertFalse (mapper .fieldType ().isIgnored ("this value will trip ignore_above, but bc keyword is not a multi field this value will not be ignored" ));
1009+ assertFalse (
1010+ mapper .fieldType ()
1011+ .isIgnored ("this value will trip ignore_above, but bc keyword is not a multi field this value will not be ignored" )
1012+ );
10101013 }
10111014
10121015 public void test_value_is_ignored_when_it_exceeds_ignore_above_and_field_is_a_multi_field () throws IOException {
@@ -1054,7 +1057,7 @@ public void test_value_is_not_ignored_when_it_does_not_exceed_ignore_above_and_f
10541057 // then
10551058 assertFalse (mapper .fieldType ().isIgnored ("this value is too short to be ignored" ));
10561059 }
1057-
1060+
10581061 public void test_value_exceeds_ignore_above_and_field_is_not_a_multi_field () throws IOException {
10591062 // given
10601063 MapperService mapperService = createSytheticSourceMapperService (mapping (b -> {
@@ -1063,12 +1066,10 @@ public void test_value_exceeds_ignore_above_and_field_is_not_a_multi_field() thr
10631066 b .field ("ignore_above" , 1 );
10641067 b .endObject ();
10651068 }));
1066-
1069+
10671070 // when
10681071 KeywordFieldMapper mapper = (KeywordFieldMapper ) mapperService .documentMapper ().mappers ().getMapper ("potato" );
1069- ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> {
1070- b .field ("potato" , "this value is too long" );
1071- }));
1072+ ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> { b .field ("potato" , "this value is too long" ); }));
10721073
10731074 // then
10741075
@@ -1094,9 +1095,7 @@ public void test_value_exceeds_ignore_above_and_field_is_a_multi_field() throws
10941095
10951096 // when
10961097 KeywordFieldMapper mapper = (KeywordFieldMapper ) mapperService .documentMapper ().mappers ().getMapper ("potato.tomato" );
1097- ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> {
1098- b .field ("potato" , "this value is too long" );
1099- }));
1098+ ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> { b .field ("potato" , "this value is too long" ); }));
11001099
11011100 // then
11021101
@@ -1123,9 +1122,7 @@ public void test_value_does_not_exceed_ignore_above_and_field_is_a_multi_field()
11231122
11241123 // when
11251124 KeywordFieldMapper mapper = (KeywordFieldMapper ) mapperService .documentMapper ().mappers ().getMapper ("potato.tomato" );
1126- ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> {
1127- b .field ("potato" , "this value is too long" );
1128- }));
1125+ ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> { b .field ("potato" , "this value is too long" ); }));
11291126
11301127 // then
11311128
@@ -1145,9 +1142,7 @@ public void test_value_exceeds_ignore_above_when_synthetic_source_disabled() thr
11451142
11461143 // when
11471144 KeywordFieldMapper mapper = (KeywordFieldMapper ) mapperService .documentMapper ().mappers ().getMapper ("potato" );
1148- ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> {
1149- b .field ("potato" , "this value is too long" );
1150- }));
1145+ ParsedDocument doc = mapperService .documentMapper ().parse (source (b -> { b .field ("potato" , "this value is too long" ); }));
11511146
11521147 // then
11531148
0 commit comments