[TEST] explicitly map fields in SignificantTermsBWCTests

This commit is contained in:
Colin Goodheart-Smithe 2015-03-24 11:21:06 +00:00
parent c87e1b41a4
commit 2bf42dc9a0
1 changed files with 2 additions and 1 deletions

View File

@ -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<>();