#26320: Reset default setting after test
This commit is contained in:
parent
de1e4e0c15
commit
c1ba860b71
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue