#26320: Reset default setting after test

This commit is contained in:
Jim Ferenczi 2017-08-23 16:05:52 +02:00
parent de1e4e0c15
commit c1ba860b71
1 changed files with 5 additions and 0 deletions

View File

@ -561,6 +561,11 @@ public class SimpleQueryStringBuilderTests extends AbstractQueryTestCase<SimpleQ
), 1.0f
);
assertEquals(expected, query);
// Reset the default value
context.getIndexSettings().updateIndexMetaData(
newIndexMeta("index",
context.getIndexSettings().getSettings(), Settings.builder().putArray("index.query.default_field", "*").build())
);
}
private static IndexMetaData newIndexMeta(String name, Settings oldIndexSettings, Settings indexSettings) {