Skip to content

Commit b20e9f1

Browse files
WasimAkhtarKhansduenas
authored andcommitted
Update querying.md
Signed-off-by: Wasim Akhtar Khan <[email protected]>
1 parent a9d69c3 commit b20e9f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/querying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ for message in es_result['hits']['hits']:
5959
(message['_source']['from'], message['_source']['subject']))
6060
```
6161

62-
The key is the line calling `es.search`, where we are querying EalisticSearch. Since we only specify the index, we will get the whole index as a result. In fact, we get a dictionary, whose `hits` field includes several interesting fields: `total` for the total number of documents retrieved, and `hits`, for a list of the documents retrieved.
62+
The key is the line calling `es.search`, where we are querying ElasticSearch. Since we only specify the index, we will get the whole index as a result. In fact, we get a dictionary, whose `hits` field includes several interesting fields: `total` for the total number of documents retrieved, and `hits`, for a list of the documents retrieved.
6363

6464
For each of these documents, the data we uploaded is in the `_source` dictionary: we only need to retrieve the needed data from there \(in this case, `from` and `subject`\).
6565

0 commit comments

Comments
 (0)