Skip to content

Commit 508ce48

Browse files
authored
Feat: notebook for Elasticsearch integration (#681)
* feat: nb elasticsearch unstructured sentiment * chore: refactor readme for elasticsearch nb * fix: update es-credentials.ini * chore: update es-credentials.ini * fix: type in nb load-into-es.ipynb exist --> exists * fix: typo 2 in nb load-into-es.ipynb obtaing --> obtain
1 parent 547bb38 commit 508ce48

File tree

4 files changed

+519
-0
lines changed

4 files changed

+519
-0
lines changed

examples/elastic-search/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Loading `Unstructured` elements into `Elasticsearch`
2+
3+
The following example shows how to load `Unstructured` output `Element` objects into an `Elasticsearch`
4+
index with sentiment analyis scores provided by the `TextBlob` library.
5+
6+
Elasticsearch stores data as JSON documents in an index, which is a collection of documents that are related to each other.
7+
8+
9+
## Running the example
10+
11+
1. Run `pip install -r requirements.txt` to install the Python dependencies.
12+
1. Modify `es-credentials.ini` with your information: `cloud_id`, `user` and `password`.
13+
1. Run the `load-into-es.ipynb` notebook.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[ELASTIC]
2+
cloud_id = Search_project:CLOUD_ID==
3+
user = USER
4+
password = PASSWORD

0 commit comments

Comments
 (0)