[OSM-talk] Name finder: "Budapesterplatz" vs. "Budapester platz"

Jon Bright jon at siliconcircus.com
Fri Aug 17 11:06:28 BST 2007


Martijn van Oosterhout wrote:
> What you essentially need to do it split up names both in the search
> term and in the data. For example in NL the street designation is
> stuck as part of the name. If you have streets like "Gerdesiaweg"
> ideally you wold like it to be found when you search for "Gerdesia".

I encounter a similar searching problem at work (unrelated to mapping 
data).  There, we solve this by removing all the spaces.  Searches for 
"Gerdesiaweg", "Gerdesia weg" and "Gerdesia" would all match against the 
indexed "gerdesiaweg".  Next step: you'll have a largeish bunch of 
matches.  You can now do scoring of those matches based on how much of 
the search text matches (i.e. how much unmatched indexed text you have), 
word boundaries, whatever seems good - and you can do it on a much 
smaller set than you originally had.

Jon Bright
Silicon Circus Ltd.

More information about the talk mailing list