toitoi / umfood-mock-data

1 stars 2 forks source link

umfood-mock-data

Sample dataset from Google Local Reviews (simpleJson in Python)

How to

Get live data from datahub

To spin up ES in docker

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.6.2
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.6.2

Reference https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

To create indices for new schema and mapping, go to mapping folder

curl -XPUT "localhost:9200/places?pretty" -H "Content-Type: application/json" -d @init.json
curl -XPUT "localhost:9200/places/_mapping" -H "Content-Type: application/json" -d @places_mapping.json

repeat the steps for users and reviews.

TODO :