]> git.openstreetmap.org Git - nominatim.git/commit
simplify weigh_search() function
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 5 Dec 2023 15:07:56 +0000 (16:07 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 7 Dec 2023 08:31:00 +0000 (09:31 +0100)
commitc41f2fed2133668dc3179813261d39d3ff69cbdd
tree35ff61165cfbf8dca405f674024a4f4a827fc606
parent05e47fbb28eb0f3f7803b6bfe194896b6e6c1ed0
simplify weigh_search() function

Use JSON arrays which can have mixed types and therefore have
a more logical structure than separate arrays. Avoid JSON dicts
because of their verboseness.
lib-sql/functions/ranking.sql
nominatim/api/search/db_search_fields.py
nominatim/utils/json_writer.py