mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
use make_keywords for place search terms also
Ensures that place indeed uses the same search names as other names.
This commit is contained in:
@@ -513,10 +513,9 @@ class _TokenInfo:
|
|||||||
"""
|
"""
|
||||||
def _get_place(name):
|
def _get_place(name):
|
||||||
with conn.cursor() as cur:
|
with conn.cursor() as cur:
|
||||||
cur.execute("""SELECT (addr_ids_from_name(%s)
|
cur.execute("""SELECT make_keywords(hstore('name' , %s))::text,
|
||||||
|| getorcreate_name_id(make_standard_name(%s), ''))::text,
|
|
||||||
word_ids_from_name(%s)::text""",
|
word_ids_from_name(%s)::text""",
|
||||||
(name, name, name))
|
(name, name))
|
||||||
return cur.fetchone()
|
return cur.fetchone()
|
||||||
|
|
||||||
self.data['place_search'], self.data['place_match'] = \
|
self.data['place_search'], self.data['place_match'] = \
|
||||||
|
|||||||
Reference in New Issue
Block a user