Programming Seeking Understanding
The blog of Mark Cheeseman

Introduction to Elasticsearch Presentation

Having found myself working on a search project using the amazing Elasticsearch, I recently gave a beginner’s introduction to Elasticsearch presentation at work. A very brief overview was followed by a live demo.

Data Source

As a data source I used ‘Airplane Crashes since 1908’ – primarily chosen because it had the types of data I wanted to demo, but morbidly interesting in its own right!

Source data was obtained from Airplane Crashes Since 1908 on Kaggle

Csv converted to json using nodejs csvtojson

Json reformatted and bulk posted to elasticsearch, using jq

cat AirplaneCrashes.json | jq -c '.[] | {"index": {"_index": "airplanecrash", "_type": "type1"}}, .' | curl -XPOST localhost:9200/_bulk --data-binary @-