
I think that its worth introducing some internal variable, like mkgmap:stop_words where you can specify your custom wordlist instead of hard-coding it. In my example from the first post there is no problem with the "street" word because it is not included in OSM street names in Poland - main difficulty with searching is because street can have two different, yet totally valid names: Miroslawa Dutka - name and surname of a person Dutka - just surname of course in OSM we enter full name and surname, but 99% of people use just surname for specifying an address. Indexing every word in street name would solve this problem :). best regards Michal Rogala 2013/2/26 Thorsten Kukuk <kukuk@suse.de>
On Tue, Feb 26, Steve Ratcliffe wrote:
So you can construct the index with as many name,offset pairs as you like, with the only downside being that the index could easily double in size if you just make every word indexable.
One idea I have here:
Add all words indexable except they are "Street", "Avenue", "Road" or whatever else we have in the world which is part of nearly every street in a country. And Ignore all words which contains only 3 or less letters (Rd, Ave, Str, ...).
I think this would be a great help if you search for a street.
Thorsten
-- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev