Closed MartinMikita closed 8 years ago
BTW the early spec of the project now in README.md https://github.com/geometalab/osmnames
Docker hub configured for autobuild: https://hub.docker.com/r/klokantech/osmnames-sphinxsearch/
@klokan Do we want one docker image with sphinx + nginx + web (flask python app), or as I have done for maprank, 2 separate docker images, using docker-compose.yml + klokantech/nginx?
Create monolith now (everything behind a single supervisord in one container) - start with https://github.com/klokan/iiifserver-build/tree/master/docker_monolith
Now it is only for development and testing. For production deployment at later point we may need microservice instead, but this could be done later.
Sources to use: https://github.com/geoadmin/service-sphinxsearch
Implement autocomplate JS in index.html:
https://github.com/klokantech/javascript/blob/master/src/nominatim.js
Usage: new kt.Nominatim(input, url)
@MartinMikita latest build of klokantech/javascript compiled at http://klokantech.github.io/javascript/kt.js
If needed, http://klokantech.github.io/styles/base.css can be used for styling the autocomplete results (.ac-*
css classes).
This javascript should be copied into repository, or linked from HTML to build URL?
Linked for now, if you don't need to compile the JS yourself.
Docker image is prepared, now it contains script for indexing display_name, class, type, lat+lon, using my sample.tsv
Main page contains autocomplete JavaScript, which uses endpoint "/search" - this search through all indices.
Endpoint "/displayName" search only in display_name
index (contains indices normal, morphology=metaphone and morphology=soundex)
Endpoint "/custom" contains form with select to index, in which it should search value.
What is next task?
Thanks @MartinMikita - we are waiting for Basic data (should be delivered by HSR students next week) - then we make next small steps on this project as well.
Thank you a lot for working on this!
Prepare docker image with: