[TEST] Add mapping to ensure all nodes / shards parse a numeric field
This commit is contained in:
parent
702a0c4948
commit
6962d4f948
|
@ -653,7 +653,7 @@ public class SimpleQueryTests extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMatchQueryNumeric() throws Exception {
|
public void testMatchQueryNumeric() throws Exception {
|
||||||
createIndex("test");
|
assertAcked(prepareCreate("test").addMapping("type1", "long", "type=long", "double", "type=double"));
|
||||||
ensureGreen();
|
ensureGreen();
|
||||||
|
|
||||||
indexRandom(true, client().prepareIndex("test", "type1", "1").setSource("long", 1l, "double", 1.0d),
|
indexRandom(true, client().prepareIndex("test", "type1", "1").setSource("long", 1l, "double", 1.0d),
|
||||||
|
|
Loading…
Reference in New Issue