settings.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, shards);
settings.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, replicas);
+ settings.put("index.max_ngram_diff", DefaultIndexSettings.MAXIMUM_NGRAM_LENGTH - DefaultIndexSettings.MINIMUM_NGRAM_LENGTH);
}
private void configureDefaultAttributes() {
assertThat(underTest.get("mapping.single_type")).isNull();
assertThat(underTest.get("index.number_of_shards")).isEqualTo("1");
assertThat(underTest.get("index.number_of_replicas")).isEqualTo("0");
+ assertThat(underTest.get("index.max_ngram_diff")).isEqualTo("13");
}
@Test
assertThat(underTest.get("mapping.single_type")).isNull();
assertThat(underTest.get("index.number_of_shards")).isEqualTo("1");
assertThat(underTest.get("index.number_of_replicas")).isEqualTo("1");
+ assertThat(underTest.get("index.max_ngram_diff")).isEqualTo("13");
}
@Test