Prerequisites
- ElasticSearch Local Setup
- Python 3+
- Flask
STEPS
-
We need to first clean the ap89 dataset to index them in elastic search.
-
"dataprep/fileparser.py" is a parser written for this dataset. So just change the collection location and start cleaning.
-
After the parsing, a JSON file named "parsed_file.json" will be created.
-
To index this data I have written an indexer named "dataprep/esindexer.py"
-
Before running it make sure you have installed elasticsearch python client from :https://elasticsearch-py.readthedocs.io/en/v8.11.0/
-
Edit the config below according to your ES instance We are creating "ap89" index in ES make sure you don't have a index named this or just comment the line out
-
If everything works perfectly you will see the indexing process like below:
-
Lets fireup out Frontend now. Its a flask based app so make sure you install flask before running it
-
Just like step 7 edit the required ES config details in "index.py" and Run the "index.py" the deployment will start.