Skip to content

teritorio/elasa-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published