[TEST] MLT malformed doc test fixed

This commit is contained in:
Alex Ksikes 2014-10-01 12:00:31 +02:00
parent dc86ac5752
commit 8d4373ab66
1 changed files with 5 additions and 1 deletions

View File

@ -607,8 +607,12 @@ public class MoreLikeThisActionTests extends ElasticsearchIntegrationTest {
}
@Test
@LuceneTestCase.AwaitsFix(bugUrl = "alex k working on it")
public void testMoreLikeThisMalformedArtificialDocs() throws Exception {
logger.info("Creating the index ...");
assertAcked(prepareCreate("test")
.addMapping("type1", "text", "type=string,analyzer=whitespace", "date", "type=date"));
ensureGreen("test");
logger.info("Creating an index with a single document ...");
indexRandom(true, client().prepareIndex("test", "type1", "1").setSource(jsonBuilder()
.startObject()