Project repo
Contains zips of letters / diaries and ES import scripts
11/17 -- Now contains colloquy text parsing / cleaning scripts.
The front end app is adapted from webpack-searchkit-es6-boilerplate.
DJE
To clone on localhost :
-
Download and run elasticsearch 2.4.6 : https://www.elastic.co/downloads/past-releases/elasticsearch-2-4-6
-
Create mappings in ES by running esImport.sh
-
Import data by :
- unzip lettersParsed.zip and run ingest.sh (n.b. change JSON_FILE_IN and JSON_FILE_OUT)
- unzip diaries.zip and run es_import.py
- Check data at:
- http://localhost:9200/tolstoy/_search?pretty
- http://localhost:9200/tolstoy/diary/_search?pretty
- http://localhost:9200/tolstoy/letter/_search?pretty
- http://localhost:9200/tolstoy/_mapping?pretty
-
Download install node / npm. Navigate to SearchkitApp folder and install dependencies.
-
npm start. n.b. when running w/ localhost, need to disable CORS.