mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[TEST] MLT malformed doc test fixed
This commit is contained in:
parent
dc86ac5752
commit
8d4373ab66
@ -607,8 +607,12 @@ public class MoreLikeThisActionTests extends ElasticsearchIntegrationTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@LuceneTestCase.AwaitsFix(bugUrl = "alex k working on it")
|
|
||||||
public void testMoreLikeThisMalformedArtificialDocs() throws Exception {
|
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 ...");
|
logger.info("Creating an index with a single document ...");
|
||||||
indexRandom(true, client().prepareIndex("test", "type1", "1").setSource(jsonBuilder()
|
indexRandom(true, client().prepareIndex("test", "type1", "1").setSource(jsonBuilder()
|
||||||
.startObject()
|
.startObject()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user