Skip to content

Commit

Permalink
Changing shakespeare bulk upload command for 6.0 (#11795)
Browse files Browse the repository at this point in the history
* Changing shakespeare bulk upload command for 6.0

* file path and mapping change

changing the file path for shakespeare and the mapping type from default to doc

* removing underscore for doc and changing file name

* removing extra spaces in the map shakespeare command

* removing  spaces before the colon

* removing extra spaces
  • Loading branch information
bhavyarm committed May 16, 2017
1 parent c2319d5 commit a3a642c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/getting-started/tutorial-load-dataset.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
The tutorials in this section rely on the following data sets:

* The complete works of William Shakespeare, suitably parsed into fields. Download this data set by clicking here:
https://download.elastic.co/demos/kibana/gettingstarted/shakespeare.json[shakespeare.json].
https://download.elastic.co/demos/kibana/gettingstarted/shakespeare_6.0.json[shakespeare.json].
* A set of fictitious accounts with randomly generated data. Download this data set by clicking here:
https://download.elastic.co/demos/kibana/gettingstarted/accounts.zip[accounts.zip]
* A set of randomly generated log files. Download this data set by clicking here:
Expand Down Expand Up @@ -63,13 +63,13 @@ Use the following command in a terminal (eg `bash`) to set up a mapping for the
[source,js]
PUT /shakespeare
{
"mappings" : {
"_default_" : {
"properties" : {
"speaker" : {"type": "keyword" },
"play_name" : {"type": "keyword" },
"line_id" : { "type" : "integer" },
"speech_number" : { "type" : "integer" }
"mappings": {
"doc": {
"properties": {
"speaker": {"type": "keyword"},
"play_name": {"type": "keyword"},
"line_id": {"type": "integer"},
"speech_number": {"type": "integer"}
}
}
}
Expand Down Expand Up @@ -152,7 +152,7 @@ The accounts data set doesn't require any mappings, so at this point we're ready

[source,shell]
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/shakespeare/_bulk?pretty' --data-binary @shakespeare.json
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/_bulk?pretty' --data-binary @logs.jsonl

These commands may take some time to execute, depending on the computing resources available.
Expand Down

0 comments on commit a3a642c

Please sign in to comment.