mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
prefer English wikipedia for wikidata matches
This commit is contained in:
@@ -2703,7 +2703,7 @@ BEGIN
|
|||||||
IF extratags ? 'wikidata' THEN
|
IF extratags ? 'wikidata' THEN
|
||||||
FOR match IN SELECT * FROM wikipedia_article
|
FOR match IN SELECT * FROM wikipedia_article
|
||||||
WHERE wd_page_title = extratags->'wikidata'
|
WHERE wd_page_title = extratags->'wikidata'
|
||||||
ORDER BY importance DESC limit 1 LOOP
|
ORDER BY language = 'en' DESC, langcount DESC LIMIT 1 LOOP
|
||||||
result.importance := match.importance;
|
result.importance := match.importance;
|
||||||
result.wikipedia := match.language || ':' || match.title;
|
result.wikipedia := match.language || ':' || match.title;
|
||||||
RETURN result;
|
RETURN result;
|
||||||
|
|||||||
Reference in New Issue
Block a user