From fee132f02bb794cc006bc4d02c2775ea7f60cefa Mon Sep 17 00:00:00 2001 From: Ria Date: Mon, 11 May 2020 12:05:46 +0430 Subject: [PATCH] docs for payload from file --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 64b8521..9dd26ef 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,28 @@ Welcome to Elasticsearch for VSCode! An extension for developing elasticsearch q - For https endpoints, just add protocol type in url : ```https://host``` - For auth protected clusters, you can use ```http://user:pass@host:9200``` as the endpoint url to have it auth. +### Submit requests +Simple way: +```text +GET /my-index/_search +{ + "size":7, + "query": { + "match" : { + "message" : { + "query" : "this is a test" + } + } + } +} +``` + +Get payload from file [[#4](https://github.com/hsen-dev/vscode-elastic/issues/4)]: +```text +PUT /my-index +!./opt/elasticsearch/mapping.json +``` + ## Commands