File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ In this project we try setup a local `elasticsearch server` and index documents
1010
1111# Implementation
1212
13- - Start ` elasticsearch server ` locally
13+ - Use [ docker-compose ] ( https://github.com/tools-utils/tutorials/tree/master/elasticsearch-js/docker-compose.yml ) to start ` elasticsearch server ` locally
1414
1515``` sh
1616npm install @elastic/elasticsearch --save
@@ -144,6 +144,18 @@ const prefix = async () => {
144144}
145145```
146146
147+ # cURL
148+
149+ ``` sh
150+ # count
151+ curl -X GET " localhost:9200/test/_count?q=city:NC&pretty"
152+ ```
153+
154+ ``` sh
155+ # delete index
156+ curl -X DELETE " localhost:9200/test?pretty"
157+ ```
158+
147159# References
148160- [ elasticsearch-js] ( https://github.com/elastic/elasticsearch-js )
149161- [ Elasticsearch Bulk] ( https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html )
You can’t perform that action at this time.
0 commit comments