[TEST] explicitly map fields in SignificantTermsBWCTests
This commit is contained in:
parent
c87e1b41a4
commit
2bf42dc9a0
|
@ -73,7 +73,8 @@ public class SignificantTermsBackwardCompatibilityTests extends ElasticsearchBac
|
||||||
}
|
}
|
||||||
|
|
||||||
private void index01Docs(String type, String settings) throws ExecutionException, InterruptedException {
|
private void index01Docs(String type, String settings) throws ExecutionException, InterruptedException {
|
||||||
String mappings = "{\"doc\": {\"properties\":{\"text\": {\"type\":\"" + type + "\"}}}}";
|
String mappings = "{\"doc\": {\"properties\":{\"" + TEXT_FIELD + "\": {\"type\":\"" + type + "\"},\"" + CLASS_FIELD
|
||||||
|
+ "\": {\"type\":\"string\"}}}}";
|
||||||
assertAcked(prepareCreate(INDEX_NAME).setSettings(settings).addMapping("doc", mappings));
|
assertAcked(prepareCreate(INDEX_NAME).setSettings(settings).addMapping("doc", mappings));
|
||||||
String[] gb = {"0", "1"};
|
String[] gb = {"0", "1"};
|
||||||
List<IndexRequestBuilder> indexRequestBuilderList = new ArrayList<>();
|
List<IndexRequestBuilder> indexRequestBuilderList = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue