[TESTS] Add explicit mappings to IndexAliasesTests.testSearchingFilteringAliasesSingleIndex

This makes sure that all shards know about the `_uid` field.
This commit is contained in:
Adrien Grand 2014-09-08 16:10:54 +02:00
parent 12ca36574e
commit 11fe940ea9
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class IndexAliasesTests extends ElasticsearchIntegrationTest {
@Test @Test
public void testSearchingFilteringAliasesSingleIndex() throws Exception { public void testSearchingFilteringAliasesSingleIndex() throws Exception {
logger.info("--> creating index [test]"); logger.info("--> creating index [test]");
createIndex("test"); assertAcked(prepareCreate("test").addMapping("type1", "id", "type=string", "name", "type=string"));
ensureGreen(); ensureGreen();