Test: predefine sort fields in mapping, otherwise during the test the field may not be found if it were to be introduced dynamically at index time.
This commit is contained in:
parent
6e4f3cf42d
commit
06c39e79d6
|
@ -1087,8 +1087,8 @@ public class SimpleChildQuerySearchTests extends ElasticsearchIntegrationTest {
|
||||||
.setSettings(settingsBuilder()
|
.setSettings(settingsBuilder()
|
||||||
.put(indexSettings())
|
.put(indexSettings())
|
||||||
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, between(2, DEFAULT_MAX_NUM_SHARDS)))
|
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, between(2, DEFAULT_MAX_NUM_SHARDS)))
|
||||||
.addMapping("parent")
|
.addMapping("parent", "p_field", "type=string")
|
||||||
.addMapping("child", "_parent", "type=parent"));
|
.addMapping("child", "_parent", "type=parent", "c_field", "type=string"));
|
||||||
ensureGreen();
|
ensureGreen();
|
||||||
|
|
||||||
// index simple data
|
// index simple data
|
||||||
|
|
Loading…
Reference in New Issue