Test: Fields in percolator query must exist before percolating

This commit is contained in:
Martijn van Groningen 2014-09-10 19:01:05 +02:00
parent dc30bb0ea7
commit 144af9c910
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ public class ConcurrentPercolatorTests extends ElasticsearchIntegrationTest {
@Test
public void testConcurrentAddingAndPercolating() throws Exception {
createIndex("index");
assertAcked(prepareCreate("index").addMapping("type", "field1", "type=string", "field2", "type=string"));
ensureGreen();
final int numIndexThreads = scaledRandomIntBetween(1, 3);
final int numPercolateThreads = scaledRandomIntBetween(2, 6);