Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 789 Bytes

README.md

File metadata and controls

41 lines (33 loc) · 789 Bytes

Elasa Search

Convert Elesa Menu and POIs to Addok format, then search on these.

Build

docker-compose -f docker-compose.yml -f docker-compose-tools.yml build

Config

Setup configuration in data/config.yaml

fetch_http_headers:
  Secret: foo

sources:
  cdt40:
    api: https://cdt40.carto.guide/api.teritorio/geodata/v0.1
    themes:
      - trourism

Initialize data

Setup configuration in data and fetch data:

rm data/*.sjson
docker-compose -f docker-compose-tools.yml run --rm t2addok ruby update.rb /data/config.yaml

Run

docker-compose up -d

Data load

docker-compose exec redis redis-cli FLUSHALL
docker-compose exec addok bash -c "cat /data/*.sjson | addok batch && addok ngrams"
docker-compose exec redis redis-cli BGSAVE