Skip to content

Commit ea0f48f

Browse files
committed
Updated README
1 parent 441763b commit ea0f48f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

elasticsearch-js/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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
1616
npm 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)

0 commit comments

Comments
 (0)