File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
core/src/test/java/org/elasticsearch/cluster/metadata
docs/java-api/admin/indices Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public void testMappingClusterStateUpdateDoesntChangeExistingIndices() throws Ex
9898 final ClusterService clusterService = getInstanceFromNode (ClusterService .class );
9999 // TODO - it will be nice to get a random mapping generator
100100 final PutMappingClusterStateUpdateRequest request = new PutMappingClusterStateUpdateRequest ().type ("type" );
101- request .source ("{ \" properties\" { \" field\" : { \" type\" : \" string \" }}}" );
101+ request .source ("{ \" properties\" { \" field\" : { \" type\" : \" text \" }}}" );
102102 mappingService .putMappingExecutor .execute (clusterService .state (), Collections .singletonList (request ));
103103 assertThat (indexService .mapperService ().documentMapper ("type" ).mappingSource (), equalTo (currentMapping ));
104104 }
@@ -109,7 +109,7 @@ public void testClusterStateIsNotChangedWithIdenticalMappings() throws Exception
109109 final MetaDataMappingService mappingService = getInstanceFromNode (MetaDataMappingService .class );
110110 final ClusterService clusterService = getInstanceFromNode (ClusterService .class );
111111 final PutMappingClusterStateUpdateRequest request = new PutMappingClusterStateUpdateRequest ().type ("type" );
112- request .source ("{ \" properties\" { \" field\" : { \" type\" : \" string \" }}}" );
112+ request .source ("{ \" properties\" { \" field\" : { \" type\" : \" text \" }}}" );
113113 ClusterState result = mappingService .putMappingExecutor .execute (clusterService .state (), Collections .singletonList (request ))
114114 .resultingState ;
115115
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ client.admin().indices().prepareCreate("twitter") <1>
1010 " \"tweet\": {\n" +
1111 " \"properties\": {\n" +
1212 " \"message\": {\n" +
13- " \"type\": \"string \"\n" +
13+ " \"type\": \"text \"\n" +
1414 " }\n" +
1515 " }\n" +
1616 " }\n" +
@@ -30,7 +30,7 @@ client.admin().indices().preparePutMapping("twitter") <1>
3030 .setSource("{\n" + <3>
3131 " \"properties\": {\n" +
3232 " \"name\": {\n" +
33- " \"type\": \"string \"\n" +
33+ " \"type\": \"text \"\n" +
3434 " }\n" +
3535 " }\n" +
3636 "}")
@@ -43,7 +43,7 @@ client.admin().indices().preparePutMapping("twitter")
4343 " \"user\":{\n" + <4>
4444 " \"properties\": {\n" +
4545 " \"name\": {\n" +
46- " \"type\": \"string \"\n" +
46+ " \"type\": \"text \"\n" +
4747 " }\n" +
4848 " }\n" +
4949 " }\n" +
@@ -64,7 +64,7 @@ client.admin().indices().preparePutMapping("twitter") <1>
6464 .setSource("{\n" + <3>
6565 " \"properties\": {\n" +
6666 " \"user_name\": {\n" +
67- " \"type\": \"string \"\n" +
67+ " \"type\": \"text \"\n" +
6868 " }\n" +
6969 " }\n" +
7070 "}")
You can’t perform that action at this time.
0 commit comments