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
ab5f348a4a
Merge pull request #3769 from lonvia/refactor-api-searches
...
Refactor code around creating SQL for serach queries
2025-07-02 20:08:11 +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
a7797f8b37
Merge pull request #3765 from lonvia/update-ui-docs
...
Update instructions for UI integration
2025-06-27 20:01:28 +02:00
Sarah Hoffmann
c4dd0d4f95
update instructions for UI integration
...
Switches from defaulting to forwarding to UI to only forwarding
when requested. This avoids issues with auto-forwarding illegal URLs.
Also adapts to the much simplified nginx configuration.
2025-06-27 11:22:28 +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
af82c3debb
remove duplicated test
...
There is a more extensive test of recompute_importance with
result check in test_refresh_wiki_data.py
2025-06-26 22:35:38 +02:00
Sarah Hoffmann
1ab4d445ea
Merge pull request #3762 from lonvia/remove-gazetteer-output-support
...
Remove support for deprecated gazetteer osm2pgsql output
2025-06-26 20:28:16 +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
Sarah Hoffmann
f97a0a76f2
Merge pull request #3747 from anqixxx/fix-special-phrases-filtering
...
Special Phrases Filtering: Add Command Line Functionality
2025-06-06 21:37:17 +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
8d0e767826
Merge pull request #3748 from lonvia/airports
...
Improve finding airports by their codes
2025-06-02 14:39:02 +02: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
831fccdaee
add FAA codes (US version of IATA codes) for airports
2025-06-01 11:49:55 +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
Sarah Hoffmann
02c3a6fffa
Merge pull request #3744 from lonvia/add-unnamed-cemetries
...
Include unnamed cemetaries in POIs
2025-05-28 11:51:23 +02:00
Sarah Hoffmann
26348764d4
add landuse=cemetery as POI even when unnamed
2025-05-28 09:48:08 +02:00
Sarah Hoffmann
f8a56ab6e6
Merge pull request #3742 from lonvia/korean-defaults
...
Remove English as default language for South Korea
2025-05-26 14:13:54 +02:00
Sarah Hoffmann
75b4c7e56b
adapt to changed loop handling of pytest_asyncio
2025-05-26 11:51:20 +02:00
Sarah Hoffmann
9f1dfb1876
remove English as default language for South Korea
2025-05-26 10:28:14 +02:00
Sarah Hoffmann
730b4204f6
Merge pull request #3741 from dave-meyer/patch-1
...
docs: Added missing code span for search API parameter value
2025-05-26 09:21:40 +02:00
Dave Meyer
4898704b5a
docs: Added missing code span for search API parameter value
2025-05-25 20:42:09 +02:00
Sarah Hoffmann
0cf470f863
Merge pull request #3710 from anqixxx/fix-special-phrases-filtering
...
Fix special phrases filtering
2025-05-21 21:34:28 +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
Sarah Hoffmann
a4d3b57f37
Merge pull request #3709 from anqixxx/update-readme
...
Improve README formatting and add install steps
2025-05-21 19:49:12 +02: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
anqixxx
9c2fdf5eae
Improve README formatting and add install steps, adding a general cloning step before the virtual environment. This would have been helpful for me during Nominatim setup
2025-05-21 10:14:36 -07:00
Sarah Hoffmann
800c56642b
tweak full count cut-off (as per deployment on osm.org)
2025-05-11 11:48:07 +02:00
Sarah Hoffmann
b51fed025c
Merge pull request #3732 from lonvia/exclude-country-from-direction-penalty
...
Exclude address searches with country from direction penalty
2025-04-30 10:45:37 +02:00
Sarah Hoffmann
34b72591cc
exclude address searches with country from direction penalty
...
Countries are not adequately represented by partial term counts.
2025-04-29 17:37:31 +02:00
Sarah Hoffmann
bc450d110c
Merge pull request #3722 from emmanuel-ferdman/master
...
resolve datetime deprecation warnings
2025-04-22 14:21:05 +02:00
Sarah Hoffmann
388acf4727
Merge pull request #3726 from lonvia/revert-json-format-change
...
Revert accidental change in json output format
2025-04-18 14:43:51 +02:00
Sarah Hoffmann
3999977941
revert accidental change in json output format
2025-04-18 12:05:25 +02:00
Emmanuel Ferdman
df58870e3f
resolve datetime deprecation warnings
...
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com >
2025-04-17 11:15:16 -07:00
Sarah Hoffmann
478a8741db
Merge pull request #3719 from lonvia/query-direction
...
Estimate query direction
2025-04-17 15:17:56 +02:00
Sarah Hoffmann
7f710d2394
add a comment about the precomputed denominator
2025-04-15 09:38:05 +02:00
Sarah Hoffmann
06e39e42d8
add direction penalties
...
Direction penalties are estimated by getting the name to address
ratio usage for each partial term in the query and computing the
linear regression of that ratio over the entire phrase. Or to put
it in ither words: we try to determine if the terms at the beginning
or the end of the query are more likely to constitute a name.
Direction penalties are currently used only in classic name queries.
2025-04-11 20:41:06 +02:00
Sarah Hoffmann
2ef0e20a3f
reorganise token reranking
...
As the reranking is about changing penalties in presence of other
tokens, change the datastructure to have the other tokens readily
avilable.
2025-04-11 13:38:34 +02:00