X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/faeee7528f710dc98bf14a08e592137d3e6d37f2..1c33cb3186a38ceb5cc4de0975ae1956c861f9b5:/nominatim/tokenizer/icu_tokenizer.py?ds=sidebyside diff --git a/nominatim/tokenizer/icu_tokenizer.py b/nominatim/tokenizer/icu_tokenizer.py index 39c1cbc6..799ff559 100644 --- a/nominatim/tokenizer/icu_tokenizer.py +++ b/nominatim/tokenizer/icu_tokenizer.py @@ -188,7 +188,7 @@ class ICUTokenizer(AbstractTokenizer): in the database. """ with conn.cursor() as cur: - cur.execute("""SELECT word, sum((info->'count')::int) as count + cur.execute("""SELECT word, sum((info->>'count')::int) as count FROM word WHERE type = 'W' GROUP BY word ORDER BY count DESC LIMIT %s""", (num,))