-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Data Management/Indices APIsAPIs to create and manage indices and templatesAPIs to create and manage indices and templates>docsGeneral docs changesGeneral docs changes
Description
This example in the Java API Administration docs does not work correctly and is very miss leading.
Example reads:
client.admin().indices().prepareCreate("twitter")
.addMapping("\"tweet\": {\n" +
" \"properties\": {\n" +
" \"message\": {\n" +
" \"type\": \"text\"\n" +
" }\n" +
" }\n" +
"}")
.get();
This example works, but it does not create the index correctly it seems, the example should read
client.admin.indices().prepareCreate("twitter")
.addMapping("tweet", "message", "type=text").get();
Metadata
Metadata
Assignees
Labels
:Data Management/Indices APIsAPIs to create and manage indices and templatesAPIs to create and manage indices and templates>docsGeneral docs changesGeneral docs changes