mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
add partial word search term to keywords as well
This commit is contained in:
@@ -345,6 +345,12 @@ BEGIN
|
|||||||
result := result || w;
|
result := result || w;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
|
w := getorcreate_word_id(s);
|
||||||
|
|
||||||
|
IF NOT (ARRAY[w] <@ result) THEN
|
||||||
|
result := result || w;
|
||||||
|
END IF;
|
||||||
|
|
||||||
words := string_to_array(s, ' ');
|
words := string_to_array(s, ' ');
|
||||||
IF array_upper(words, 1) IS NOT NULL THEN
|
IF array_upper(words, 1) IS NOT NULL THEN
|
||||||
FOR j IN 1..array_upper(words, 1) LOOP
|
FOR j IN 1..array_upper(words, 1) LOOP
|
||||||
@@ -407,6 +413,12 @@ BEGIN
|
|||||||
result := result || w;
|
result := result || w;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
|
w := getorcreate_word_id(s);
|
||||||
|
|
||||||
|
IF NOT (ARRAY[w] <@ result) THEN
|
||||||
|
result := result || w;
|
||||||
|
END IF;
|
||||||
|
|
||||||
words := string_to_array(s, ' ');
|
words := string_to_array(s, ' ');
|
||||||
IF array_upper(words, 1) IS NOT NULL THEN
|
IF array_upper(words, 1) IS NOT NULL THEN
|
||||||
FOR j IN 1..array_upper(words, 1) LOOP
|
FOR j IN 1..array_upper(words, 1) LOOP
|
||||||
|
|||||||
Reference in New Issue
Block a user