[DOCS] Add windows powershell commands to the tutorial (#15499)

* Added windows powershell commands to the tutorial

* Change to describe using Kibana Console

The instructions looked like Kibana Console format, not curl commands
This commit is contained in:
Marius Dragomir 2017-12-11 17:26:36 +02:00 committed by GitHub
parent 43e68c519a
commit 205371cdca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ Before we load the Shakespeare and logs data sets, we need to set up {ref}/mappi
Mapping divides the documents in the index into logical groups and specifies a field's characteristics, such as the
field's searchability or whether or not it's _tokenized_, or broken up into separate words.
Use the following command in a terminal (eg `bash`) to set up a mapping for the Shakespeare data set:
Use the following command in the Kibana Console to set up a mapping for the Shakespeare data set:
[source,js]
PUT /shakespeare
@ -155,6 +155,12 @@ curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account
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
Or for Windows users, in Powershell:
[source,shell]
Invoke-RestMethod "http://localhost:9200/bank/account/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "accounts.json"
Invoke-RestMethod "http://localhost:9200/shakespeare/doc/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "shakespeare_6.0.json"
Invoke-RestMethod "http://localhost:9200/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "logs.jsonl"
These commands may take some time to execute, depending on the computing resources available.
Verify successful loading with the following command: