Emily Love Watson
048d571e46
Index and return entrance coordinates for indexed locations
2025-08-29 10:25:44 -05:00
Sarah Hoffmann
c2a311e69c
fix poscode update computation: use distance
2025-08-29 15:10:27 +02:00
marc tobias
247afe1f56
sanetizer no longer strips name parts in brackets when more parts follow
2025-08-23 01:06:35 +02: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
marc tobias
9bad3b1e61
Better hint to user if database import didnt finish
2025-07-30 10:25:14 +02:00
Sarah Hoffmann
e1cef3de0a
remove unused code
2025-07-21 11:36:57 +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
Sarah Hoffmann
21ef3be433
fix direction factor computation on empty strings
2025-07-11 11:25:14 +02:00
Sarah Hoffmann
fe30663b21
remove penalty from TokenRanges
...
The parameter is no longer needed.
2025-07-11 11:01:22 +02:00
Sarah Hoffmann
b9252cc348
reduce maximum number of SQL queries per search
2025-07-11 11:01:22 +02:00
Sarah Hoffmann
71025f3f43
fix order of address rankings prefering longest words
2025-07-11 11:01:21 +02:00
Sarah Hoffmann
e4b671f8b1
reinstate penalty for partial only matches
2025-07-11 11:01:21 +02:00
Sarah Hoffmann
7ebd121abc
give word break slight advantage towards continuation
...
prefers longer words
2025-07-11 11:01:21 +02:00
Sarah Hoffmann
4634ad0720
rebalance word transition penalties
2025-07-11 11:01:21 +02:00
Sarah Hoffmann
4a9253a0a9
simplify QueryNode penalty and initial assignment
2025-07-11 11:01:09 +02:00
Sarah Hoffmann
cf9e8d6b8e
split up query for deletable endpoint by osm type
...
This is needed to ensure index use on placex.
2025-07-08 11:03:29 +02:00
Sarah Hoffmann
3e04eb2ffe
increase penalty on mismatching postcodes for address searches
...
Otherwise there is an imbalance towards matching housenumbers
instead of the actual street (where no housenumber exists).
2025-07-07 16:07:32 +02:00
Sarah Hoffmann
970d81fb27
sort housenumber parents by accuracy first
...
Sorting them by presence of housenumber only will give an undue
preference to results with a housenumber while disregarding other
factors like matching postcodes.
2025-07-07 12:06:06 +02:00
Sarah Hoffmann
cecdbeb7cf
reduce candidates for place search
2025-07-07 12:03:56 +02:00
Sarah Hoffmann
c634e9fc5f
differentiate between place searches with and without address
2025-07-07 12:03:56 +02:00
Sarah Hoffmann
13eaea8aae
split place search into address search and named search
...
The presence/absence of houenumbers makes quite a difference for search.
2025-07-07 09:13:48 +02:00
Sarah Hoffmann
11d624e92a
split db_searches moving each class in its own file
2025-07-01 22:57:04 +02:00
Sarah Hoffmann
f43fec0d57
Merge pull request #3764 from lonvia/update-importance
...
'refresh --importance' also needs to refresh importances in search_name table
2025-06-27 10:02:18 +02:00
Sarah Hoffmann
678702ceb7
rewrite importances in search_name after updating in placex
2025-06-26 20:27:37 +02:00
Sarah Hoffmann
f9eb93c4ab
remove support for deprecated gazetteer osm2pgsql output
2025-06-25 23:09:08 +02:00
anqixxx
cf9b946eba
Added skip for when min =0
2025-06-05 09:25:14 +08:00
anqixxx
7dc3924a3c
Added default min = 0 argument for private functions
...
empty
2025-06-04 01:12:36 -07:00
anqixxx
20cf4b56b9
Refactored min and associated tests to follow greater than or equal to logic, so that min=0 accounted for no filtering
...
r
2025-06-04 00:53:52 -07:00
anqixxx
40d5b78eb8
Added command line (default 0) min argument for minimum filtering, updated args.py to reflect this
2025-06-04 00:53:52 -07:00
Sarah Hoffmann
87a8c246a0
improve result cutting when a POI comes out with top importance
2025-06-01 12:00:36 +02:00
Sarah Hoffmann
90050de717
only rerank results if there is more than one
...
With one result order is obvious.
2025-06-01 11:55:27 +02:00
Sarah Hoffmann
10a7d1106d
reduce influence of query rematching a little bit
2025-06-01 11:54:21 +02:00
Sarah Hoffmann
f2236f68f1
when rematching only distinguish between perfect, somewhat and bad match
2025-06-01 11:53:23 +02:00
Sarah Hoffmann
d2e691b63f
work around bogus type error in latest starlette
2025-05-31 09:43:48 +02:00
Sarah Hoffmann
2a508b6c99
fix missing optional return
2025-05-30 12:03:00 +02:00
anqixxx
6220bde2d6
Added mypy ignore fix for logging.py (library change), as well as quick mac fix on mem.cached
2025-05-21 11:11:56 -07:00
anqixxx
618fbc63d7
Added testing to test get classtype pairs in import special phrases
2025-05-21 10:39:51 -07:00
anqixxx
3f51cb3fd1
Made the limit configurable with an optional argument, updating the testing as well to reflect this. default is now 0, meaning that it will return everything that occurs more than once. Removed mock database test, and got rid of fetch all. Rebased all tests to monkeypatch
2025-05-21 10:38:34 -07:00
anqixxx
59a947c5f5
Removed class type pair getter that used style sheets from both spi_importer and the associated testing function
2025-05-21 10:38:08 -07:00
anqixxx
1952290359
Removed magic mocking, using monkeypatch instead, and using a placex table to simulate a 'real database'
2025-05-21 10:37:42 -07:00
anqixxx
1a323165f9
Filter special phrases by style and frequency to fix #235
2025-05-21 10:36:46 -07:00