Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 428 Bytes

readme.md

File metadata and controls

13 lines (10 loc) · 428 Bytes

Temporary/demo index builder for Crateful

# setup elasticsearch...

# setup bestbuy data in mongodb
docker run -d -p 27017:27017 --name bestbuy_mongodb -e BESTBUY_API_KEY=me3z97a7abw8rbjhkapgbbzp bigwednesdayio/bestbuy_mongodb
docker exec -it bestbuy_mongodb mongo bestbuy --eval 'db.products.createIndex({"categoryPath.id": 1})'
docker exec -it bestbuy_mongodb import.sh

# 5-10 mins later when finished
node index.js