99package org .elasticsearch .index .mapper ;
1010
1111import com .carrotsearch .randomizedtesting .generators .RandomStrings ;
12+
1213import org .apache .lucene .analysis .Analyzer ;
1314import org .apache .lucene .analysis .LowerCaseFilter ;
1415import org .apache .lucene .analysis .TokenFilter ;
@@ -460,12 +461,12 @@ public void test_isIgnoreAboveSet_returns_true_when_ignore_above_is_given_as_log
460461 public void test_isIgnoreAboveSet_returns_false_when_ignore_above_is_configured_at_index_level () {
461462 // given
462463 Settings settings = Settings .builder ()
463- .put (IndexMetadata .SETTING_VERSION_CREATED , IndexVersion .current ())
464- .put (IndexSettings .MODE .getKey (), IndexMode .STANDARD )
465- .put (IndexMetadata .SETTING_NUMBER_OF_SHARDS , 1 )
466- .put (IndexMetadata .SETTING_NUMBER_OF_REPLICAS , 1 )
467- .put (IndexSettings .IGNORE_ABOVE_SETTING .getKey (), 123 )
468- .build ();
464+ .put (IndexMetadata .SETTING_VERSION_CREATED , IndexVersion .current ())
465+ .put (IndexSettings .MODE .getKey (), IndexMode .STANDARD )
466+ .put (IndexMetadata .SETTING_NUMBER_OF_SHARDS , 1 )
467+ .put (IndexMetadata .SETTING_NUMBER_OF_REPLICAS , 1 )
468+ .put (IndexSettings .IGNORE_ABOVE_SETTING .getKey (), 123 )
469+ .build ();
469470 IndexSettings indexSettings = new IndexSettings (IndexMetadata .builder ("index" ).settings (settings ).build (), settings );
470471 MappingParserContext mappingParserContext = mock (MappingParserContext .class );
471472 doReturn (settings ).when (mappingParserContext ).getSettings ();
@@ -475,13 +476,13 @@ public void test_isIgnoreAboveSet_returns_false_when_ignore_above_is_configured_
475476 KeywordFieldMapper .Builder builder = new KeywordFieldMapper .Builder ("field" , mappingParserContext );
476477
477478 KeywordFieldMapper .KeywordFieldType fieldType = new KeywordFieldMapper .KeywordFieldType (
478- "field" ,
479- mock (FieldType .class ),
480- mock (NamedAnalyzer .class ),
481- mock (NamedAnalyzer .class ),
482- mock (NamedAnalyzer .class ),
483- builder ,
484- true
479+ "field" ,
480+ mock (FieldType .class ),
481+ mock (NamedAnalyzer .class ),
482+ mock (NamedAnalyzer .class ),
483+ mock (NamedAnalyzer .class ),
484+ builder ,
485+ true
485486 );
486487
487488 // when/then
0 commit comments