RestSearchCloudClient client = new RestSearchCloudClient(new DefaultHttpClientFactory(), getUri(), "apikey");
String modelId = "test_SetSchema";
DocumentSchemaBuilder builder = new DocumentSchemaBuilder();
DocumentSchema schema = builder.withField("string", new StringFieldType(Language.ZH_TW)).withField("date",
new DateFieldType()).withField("location", new LocationFieldType()).withField("int",
new IntegerFieldType(true)).withField("double", new DoubleFieldType(true)).build();
client.setSchema(new SetSchemaRequest(modelId, schema));