test: use a single primary shard to workaround an edge case with the phrase suggester

Relates to elastic/x-pack-elasticsearch#2804

Original commit: elastic/x-pack-elasticsearch@afd028faf7
This commit is contained in:
Martijn van Groningen 2017-10-27 10:41:04 +02:00
parent 215f289a8c
commit e028716bec
1 changed files with 1 additions and 0 deletions

View File

@ -956,6 +956,7 @@ public class DocumentLevelSecurityTests extends SecurityIntegTestCase {
public void testSuggesters() throws Exception {
assertAcked(client().admin().indices().prepareCreate("test")
.setSettings(Settings.builder().put("index.number_of_shards", 1))
.addMapping("type1", "field1", "type=text", "suggest_field1", "type=text", "suggest_field2", "type=completion")
);