mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 23:57:20 -04:00
Updated "string" datatype in docs & tests to "text" (#27629)
This commit is contained in:
parent
7a44596446
commit
b44ae25c27
2 changed files with 6 additions and 6 deletions
|
@ -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" +
|
||||
"}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue