Skip to content

toitoi/umfood-mock-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :

  • batch job to init the es
  • batch job to load data using Converter.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published