Sri Charan Chittineni
c4dc2c862e
fix mypy typing for Starlette state object ( #3944 )
2026-01-22 13:21:34 +01:00
Sarah Hoffmann
6a67cfcddf
adapt search frontend to new postcode table
2025-12-30 15:20:46 +01:00
Sarah Hoffmann
9ec607b556
change confusing value in debug output for missing importance
2025-12-30 15:20:46 +01:00
Sarah Hoffmann
89821d01e0
reorganise layout of location_postcode table
...
Also renames the table as this will make it easier to migrate.
2025-12-30 15:20:46 +01:00
Sarah Hoffmann
0aa9eee3e7
remove special casing for postcodes in trigger code
2025-12-30 15:20:46 +01:00
Ayush Dhar Dubey
4fd616254a
update Locales constructor:
...
expect output names as argument and avoid redundant configuration initialization
2025-12-20 19:15:33 +05:30
Ayush Dhar Dubey
049164086a
fix: ensure Locales is not initialized when provided in options
2025-12-20 19:12:15 +05:30
Sarah Hoffmann
35060164ab
reverse: only return housenumbers near street
2025-12-07 11:00:23 +01:00
Sarah Hoffmann
3bb5d00848
avoid extra query for finding closest housenumber in reverse
2025-12-05 17:09:13 +01:00
Sarah Hoffmann
b366b9df6f
reverse: avoid interpolation lookup when result is already perfect
2025-12-05 17:08:46 +01:00
Sarah Hoffmann
ffd5c32f17
fix comparision between countr tokens and country restriction
2025-12-04 18:29:25 +01:00
Sarah Hoffmann
81c6cb72e6
add normalised country name to word table
...
Country tokens now follow the usual convetion of having the
normalized version in the word column and the extra info about the
country code in the info column.
2025-12-01 13:10:18 +01:00
Sarah Hoffmann
fba803167c
fix imprecise import
2025-11-30 11:50:55 +01:00
Vytautas Liuolia
7b4a3c8500
Add from __future__ import annotations to delay evaluation
2025-11-16 14:41:25 +01:00
Vytautas Liuolia
7751f9a6b6
Adapt type annotations to Falcon App type changes
...
See also: https://falcon.readthedocs.io/en/latest/api/typing.html#generic-app-types
2025-11-10 20:09:17 +01:00
Sarah Hoffmann
9a13b62fb9
prepare release 5.2.0
2025-10-29 10:01:30 +01:00
Sarah Hoffmann
72592da0cc
reduce penalty for artificial housenumbers
2025-09-12 17:44:54 +02:00
Sarah Hoffmann
193d6c4173
in-word penalty for final address token
2025-09-12 12:05:29 +02:00
Sarah Hoffmann
4fd881bcb2
housenumber and postcode cross penalties for partials
2025-09-12 11:50:01 +02:00
Sarah Hoffmann
54620f9566
base penalty for housenumber searches on similar address searches
2025-09-12 10:52:42 +02:00
Sarah Hoffmann
42b687f545
stop searching earlier after the first results was found
2025-09-12 10:01:13 +02:00
Sarah Hoffmann
43ffceff27
remove base penalty for postcodes
...
This is a relict from having base penalties for all terms.
2025-09-12 09:45:57 +02:00
Sarah Hoffmann
670cf98f93
fix query time logging for structured queries
2025-09-11 10:54:02 +02:00
Sarah Hoffmann
bf49f6a46f
Merge pull request #3833 from lonvia/rework-logging
...
Introduce generic query statistics and make log output configurable
2025-09-11 08:46:44 +02:00
Sarah Hoffmann
45a44f1411
export QueryStatistics type
2025-09-10 21:40:39 +02:00
Sarah Hoffmann
5a2bfd7a19
add documentation for library API
2025-09-10 21:38:09 +02:00
Sarah Hoffmann
fd12d2e9f3
add additional stats for search queries
2025-09-10 20:49:46 +02:00
Sarah Hoffmann
3d0867ff16
make log output configurable
2025-09-10 20:11:46 +02:00
Sarah Hoffmann
177b16b89b
use new QueryStatistics in API server
2025-09-10 11:52:06 +02:00
Sarah Hoffmann
0b7bde2500
introduce parameter for saving query statistics
2025-09-10 10:24:20 +02:00
Sarah Hoffmann
07c2907064
split normalized word when transliteration is split up
2025-09-08 22:58:01 +02:00
Sarah Hoffmann
8339c2b928
no longer accept None in result maker functions
2025-09-06 11:09:40 +02:00
Sarah Hoffmann
341c09ee95
remove unused functions
2025-09-06 11:09:40 +02:00
Sarah Hoffmann
3a50f749dd
apply request timeout also while waiting for a connection from pool
2025-09-05 23:31:09 +02:00
Sarah Hoffmann
563255202d
read request_timeout configuration only once
2025-09-05 09:18:50 +02:00
Emily Love Watson
91e345f77f
Store entrance fields as columns on table
2025-08-29 10:26:29 -05:00
Emily Love Watson
d0ad65f696
Select all entrances for results in one query
2025-08-29 10:26:29 -05:00
Emily Love Watson
e916d27b7c
Update entrances when entrance nodes are updated
2025-08-29 10:26:29 -05:00
Emily Love Watson
823ad5d279
Update entrances schema
2025-08-29 10:26:29 -05:00
anqixxx
6b627df4fb
Locales and localization refactor with Locales as a localizer object.
...
Removed auto-localization from search/search_address APIs (now explicit), simplified AddressLines to subclass List[AddressLine], made display_name a computed property in Results instead of field and removed result-localization circular dependencies
2025-08-12 08:05:37 -04:00
Sarah Hoffmann
c7df8738ed
fix typing issue with latest falcon version
2025-08-06 20:08:10 +02:00
Sarah Hoffmann
0045203092
don't restrict to viewbox for frequent terms
...
All searched places may be outside the viewbox in which case the
restriction means that there are no results at all. Add the penalty for
being outside the viewbox earlier instead and then cut the list.
2025-08-06 17:27:52 +02:00
Sarah Hoffmann
8bb53c22be
raise minimum supported Python version to 3.9
2025-07-19 15:23:17 +02:00
Sarah Hoffmann
8a96e4f802
Merge pull request #3781 from lonvia/partial-address-index-lookup
...
Reduce number of tokens used for index lookups during search
2025-07-15 10:11:12 +02:00
Sarah Hoffmann
09b5ea097b
restrict pre-selection by postcode to country
2025-07-14 14:21:09 +02:00
Sarah Hoffmann
e111257644
restrict name-only address searches early by postcode
2025-07-14 14:21:09 +02:00
Sarah Hoffmann
93ac1023f7
restrict name-only search more
2025-07-14 14:21:09 +02:00
Sarah Hoffmann
1fe2353682
restrict postcode distance computation to within country
2025-07-14 14:21:09 +02:00
Sarah Hoffmann
6d2b79870c
only use most infrequent tokens for search index lookup
2025-07-14 14:18:22 +02:00
Sarah Hoffmann
621d8e785b
Merge pull request #3779 from lonvia/fix-zero-devision-direction
...
Fix direction factor computation on empty strings
2025-07-11 14:51:00 +02:00