Skip to content

Commit 0f708a2

Browse files
authored
Update README.md
1 parent aebf765 commit 0f708a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ from elasticsearch import Elasticsearch
5858
es = Elasticsearch('http://localhost:9200')
5959
es.index(index='my_index', doc_type='my_index', id=1, body={'text': 'this is a test'})
6060
es.index(index='my_index', doc_type='my_index', id=2, body={'text': 'this is a second test'})
61+
es.indices.refresh(index='my_index')
6162
es.search(index='my_index', doc_type='my_index', body={'query': {'match': {'text': 'this is'}}})
6263
es.indices.delete('my_index')
6364
```
@@ -138,4 +139,4 @@ scripts/kill-machine.sh
138139
Destroy infrastructure (hard)
139140
```
140141
scripts/kill-machine.sh
141-
```
142+
```

0 commit comments

Comments
 (0)