[TEST] Add mapping to ensure all nodes / shards parse a numeric field

This commit is contained in:
Simon Willnauer 2014-03-23 21:29:10 +01:00
parent 702a0c4948
commit 6962d4f948
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ public class SimpleQueryTests extends ElasticsearchIntegrationTest {
@Test
public void testMatchQueryNumeric() throws Exception {
createIndex("test");
assertAcked(prepareCreate("test").addMapping("type1", "long", "type=long", "double", "type=double"));
ensureGreen();
indexRandom(true, client().prepareIndex("test", "type1", "1").setSource("long", 1l, "double", 1.0d),