Hi all I installed nominatim in a server..., in this route: /module/tokenstringreplacements.inc, I index a new abbreviations, a sample: str_replace(buffer, &len, &changes, " diagonal ", 10, " diag ", 6, 0); str_replace(buffer, &len, &changes, " diagonal ", 10, " dg ", 6, 0); str_replace(buffer, &len, &changes, " diagonal ", 10, " dig ", 6, 0); I search by diagonal and diag in results OK, but a search a new created abbreviations "dg" and "dig" and NOT search... is a /tokenstringreplacements.inc the data of abbreviations in search, or any other archive editet for the index abbreviations? thanks Alveniz asked 29 Oct '13, 01:33 alveniz |
If in your case you want to be able to find "foo diagonal" also by typing "foo diag", "foo dig", and "foo dg", then all four terms have to be replaced with the same thing, so that they match. You should use the most ambiguous abbreviation as the common term, in this case "dg". So the replacements should be:
Note that these changes have to be done before the import, as the normalization needs to be applied to the names in the imported OSM data as well. answered 29 Oct '13, 07:57 lonvia |