by codewright · 14y ago · 0 comments
Incremental updates and intelligent, flexible, efficient search are all immediately doable with existing open source software.
Why are people hellbent on using Postgres where it's suboptimal for a dataset this large that needs intelligent searching?
Seriously people: https://github.com/ncolomer/elasticsearch-osmosis-plugin
Learn the JSON document and query formats, and then proceed to jump with glee whenever you encounter a problem well served by a search engine instead of doing hack-neyed manual indices and full-text queries and poorly managed shards on Postgres.
Postgres is for important operational data. Excellent at that. Not so great for search, bulk, or static datasets.
ElasticSearch is so well-designed that I just expose a raw query interface to it to our frontend JS guy and he just builds his own queries from the user inputs.
ElasticSearch is probably like 20-30% of the technological secret sauce of my startup.
In particular, roads with long straight segments don't have many nodes, so the nearest road isn't always the road the nearest node is on - and a road that travels through a bounding box won't always have a node in the bounding box.
Does ElasticSearch support indexing on geometry more complicated than points?
If it can be represented as a geo point or a composite of multiple geo points, then ElasticSearch can grok it. Otherwise, no.
If you want to query arbitrary paths, that's on you to bridge the gap between a spatial database and a graph store.
I'm not really sure what you're looking for. This post was about OpenStreetMaps.
We didn't look into elastic search, since we wanted to give ArangoDB a try. We will have a look into it, thanks for the hint!
ElasticSearch is a search engine, first and foremost, and while you could use it as a database-of-first-resort, I'd be hesitant to recommend as much. For one thing, it doesn't take durability very seriously.
As a result, I have to assume you chose wisely if you're using ArangoDB for a standard database use-case.
It is developed locally and we wanted to try if it scales up and assists us, or if we should go the "traditional" Postgres way that everybody else goes.