add partial word search term to keywords as well

This commit is contained in:
Sarah Hoffmann 2013-02-08 19:11:15 +01:00
parent e891aa3041
commit 12c0944d93

View File

@ -345,6 +345,12 @@ BEGIN
result := result || w;
END IF;
w := getorcreate_word_id(s);
IF NOT (ARRAY[w] <@ result) THEN
result := result || w;
END IF;
words := string_to_array(s, ' ');
IF array_upper(words, 1) IS NOT NULL THEN
FOR j IN 1..array_upper(words, 1) LOOP
@ -407,6 +413,12 @@ BEGIN
result := result || w;
END IF;
w := getorcreate_word_id(s);
IF NOT (ARRAY[w] <@ result) THEN
result := result || w;
END IF;
words := string_to_array(s, ' ');
IF array_upper(words, 1) IS NOT NULL THEN
FOR j IN 1..array_upper(words, 1) LOOP