-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continuous updates #381
Comments
Is #369 relevant? |
In order to benefit from the latest PRs, I compiled the source code myself, instead of using the latest binaries. Nevertheless, I still have the problem that I mentioned. I also have the impression that Nominatim's update.php script should be executed with the ' --index' parameter soon after Photon is done with the update, otherwise Nominatim updates don't work properly. Something like these:
By the way, the documentation of Nominatim says that the "--no-npi" parameter is deprecated: what was that for? Could anyone please confirm/oppose my impression? Thanks in advance for your help, |
The script should work as is. @simonpoole did some debugging and figured out that the photon script should be setting the 'indexed' flag in Nominatim's database to signal that it is done. Otherwise Nominatim will refuse to continue with the updates. |
See osm-search/Nominatim#1284 too. I'm having a general look at the way updating works, in particular splitting NominatimUpdater so that it outputs a file with the required actions and can read such a file back in, to get rid of the requirement that you need to have a local nominatim DB for updates. But no promises, I'm at the exploratory/prototyping stage and there may be (well very likely there definitely will be) some hurdles I'm not aware of yet. |
We've done something similar in our version of Photon / Nomitatim We changed the update process of Nominatim to the following:
We've create our own updater in Photon, which just accepts an array of the changed ids in the Nominatim instance: https://github.com/flitsmeister/photon/blob/master/src/main/java/de/komoot/photon/nominatim/FMNominatimUpdater.java No we remember the last revision of Photon and check's every x hours on the nominatim service if there's a new file with updates available. This works perfectly for months already. Maybe it will help you find a solution |
Thanks a lot for your reply, @hendrikmoree. Could you please provide me with an example of how you invoke the endpoint /fm-nominatim-update that you set up? In particular, I don't understand how to produce the JSON which has to be sent as the body of the request... |
See #385 for what I've been working on. As it says it is WIP and I've only tested it running against a Nominatim instance with a small OSM extract. |
Should be fixed in the latest release. |
I am struggling to make Photon continuously update, despite the fact that "my" Nominatim regularly does. As a matter of facts, I end up having Photon exposing features with no geometry.
Can you confirm that this script, https://github.com/komoot/photon/blob/master/continuously_update_from_nominatim.sh, which was last committed more than 4 years ago, is still providing a valid recipe?
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: