Updated "string" datatype in docs & tests to "text" (#27629)

This commit is contained in:
Catalin Ursachi 2017-12-04 10:51:00 +00:00 committed by Luca Cavanna
parent 7a44596446
commit b44ae25c27
2 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@ client.admin().indices().prepareCreate("twitter") <1>
" \"tweet\": {\n" +
" \"properties\": {\n" +
" \"message\": {\n" +
" \"type\": \"string\"\n" +
" \"type\": \"text\"\n" +
" }\n" +
" }\n" +
" }\n" +
@ -30,7 +30,7 @@ client.admin().indices().preparePutMapping("twitter") <1>
.setSource("{\n" + <3>
" \"properties\": {\n" +
" \"name\": {\n" +
" \"type\": \"string\"\n" +
" \"type\": \"text\"\n" +
" }\n" +
" }\n" +
"}")
@ -43,7 +43,7 @@ client.admin().indices().preparePutMapping("twitter")
" \"user\":{\n" + <4>
" \"properties\": {\n" +
" \"name\": {\n" +
" \"type\": \"string\"\n" +
" \"type\": \"text\"\n" +
" }\n" +
" }\n" +
" }\n" +
@ -64,7 +64,7 @@ client.admin().indices().preparePutMapping("twitter") <1>
.setSource("{\n" + <3>
" \"properties\": {\n" +
" \"user_name\": {\n" +
" \"type\": \"string\"\n" +
" \"type\": \"text\"\n" +
" }\n" +
" }\n" +
"}")