]> git.openstreetmap.org Git - nominatim.git/log
nominatim.git
3 years agoMerge pull request #2277 from lonvia/update-osm2pgsql
Sarah Hoffmann [Fri, 16 Apr 2021 15:40:43 +0000 (17:40 +0200)]
Merge pull request #2277 from lonvia/update-osm2pgsql

Update osm2pgsql to current master

3 years agoremove PHP code for transition functions
Sarah Hoffmann [Fri, 16 Apr 2021 15:28:51 +0000 (17:28 +0200)]
remove PHP code for transition functions

3 years agoremove installation of PHP util scripts
Sarah Hoffmann [Fri, 16 Apr 2021 15:09:40 +0000 (17:09 +0200)]
remove installation of PHP util scripts

3 years agoMerge pull request #2276 from lonvia/port-country-code-creation-to-python
Sarah Hoffmann [Fri, 16 Apr 2021 14:57:04 +0000 (16:57 +0200)]
Merge pull request #2276 from lonvia/port-country-code-creation-to-python

Port country code creation to python

3 years agoadd test for new postcode import function
Sarah Hoffmann [Fri, 16 Apr 2021 13:37:53 +0000 (15:37 +0200)]
add test for new postcode import function

3 years agoport function to compute initial postcodes to Python
Sarah Hoffmann [Fri, 16 Apr 2021 13:05:40 +0000 (15:05 +0200)]
port function to compute initial postcodes to Python

3 years agoMerge pull request #2275 from lonvia/switch-to-absolute-imports
Sarah Hoffmann [Fri, 16 Apr 2021 13:04:10 +0000 (15:04 +0200)]
Merge pull request #2275 from lonvia/switch-to-absolute-imports

Use absolute imports in Python code

3 years agouse absolute imports in Python code
Sarah Hoffmann [Fri, 16 Apr 2021 12:20:09 +0000 (14:20 +0200)]
use absolute imports in Python code

Relative imports are no longer officially recommended.

3 years agoupdate osm2pgsql to current master (fixes version output)
Sarah Hoffmann [Thu, 15 Apr 2021 08:24:01 +0000 (10:24 +0200)]
update osm2pgsql to current master (fixes version output)

3 years agoMerge pull request #2263 from AntoJvlt/special-phrases-autoupdate
Sarah Hoffmann [Thu, 15 Apr 2021 08:13:25 +0000 (10:13 +0200)]
Merge pull request #2263 from AntoJvlt/special-phrases-autoupdate

Implemented auto update of special phrases while importing them

3 years agoMerge pull request #2270 from lonvia/simplify-place-boundary-merge
Sarah Hoffmann [Thu, 15 Apr 2021 08:12:53 +0000 (10:12 +0200)]
Merge pull request #2270 from lonvia/simplify-place-boundary-merge

Simplify matching between place and boundary names

3 years agoadapt database check to new index layout
Sarah Hoffmann [Wed, 14 Apr 2021 07:58:14 +0000 (09:58 +0200)]
adapt database check to new index layout

3 years agoadd migration for new placenode geometry index
Sarah Hoffmann [Fri, 9 Apr 2021 19:24:35 +0000 (21:24 +0200)]
add migration for new placenode geometry index

3 years agosimplify name matching between boundary and place node
Sarah Hoffmann [Fri, 9 Apr 2021 19:10:00 +0000 (21:10 +0200)]
simplify name matching between boundary and place node

Instead of normalising the names simply compare them in lower
case. This removes the dependency on the tokenizer for
linking boundaries and nodes. When looking up the linked places
by place type also allow that one name is simply contained in the
other. This catches the frequent case where one of the names has
an addendum (e.g. Newport vs. City of Newport).

Drops the special index for the name lookup and insted relies
on a slightly extended version of the geometry index used for
reverse lookup. Saves around 100MB on a planet.

3 years agoMerge pull request #2269 from lonvia/fix-actions
Sarah Hoffmann [Wed, 14 Apr 2021 15:50:02 +0000 (17:50 +0200)]
Merge pull request #2269 from lonvia/fix-actions

github actions: reintroduce postgresql repo

3 years agogithub actions: reintroduce postgresql repo
Sarah Hoffmann [Wed, 14 Apr 2021 14:19:49 +0000 (16:19 +0200)]
github actions: reintroduce postgresql repo

3 years agoMerge pull request #2264 from darkshredder/tiger-data-tests
Sarah Hoffmann [Wed, 14 Apr 2021 08:56:12 +0000 (10:56 +0200)]
Merge pull request #2264 from darkshredder/tiger-data-tests

Fix:  Error if last statements is wrong and improved tests in tiger data import

3 years agoFix: Removed error if endstatement is wrong and improved tests
Darkshredder [Tue, 13 Apr 2021 09:36:02 +0000 (15:06 +0530)]
Fix: Removed error if endstatement is wrong and improved tests

3 years agoTests added for the auto update of special phrases during import
AntoJvlt [Mon, 12 Apr 2021 12:10:30 +0000 (14:10 +0200)]
Tests added for the auto update of special phrases during import

3 years agoImplemented auto update of special phrases while importing them
AntoJvlt [Mon, 12 Apr 2021 09:55:18 +0000 (11:55 +0200)]
Implemented auto update of special phrases while importing them

3 years agoMerge pull request #2260 from AntoJvlt/fix-load-languages-special-phrases
Sarah Hoffmann [Sun, 11 Apr 2021 21:09:45 +0000 (23:09 +0200)]
Merge pull request #2260 from AntoJvlt/fix-load-languages-special-phrases

Fix default languages loading for special phrases import

3 years agoFix default languages loading
AntoJvlt [Sun, 11 Apr 2021 20:26:31 +0000 (22:26 +0200)]
Fix default languages loading

3 years agoMerge pull request #2258 from darkshredder/code-coverage
Sarah Hoffmann [Sat, 10 Apr 2021 19:19:55 +0000 (21:19 +0200)]
Merge pull request #2258 from darkshredder/code-coverage

Disabled Code coverage status checks

3 years agoCodeCov comment only when codecoverage changes
Darkshredder [Sat, 10 Apr 2021 16:58:29 +0000 (22:28 +0530)]
CodeCov comment only when codecoverage changes

3 years agoDisabled Coverage status checks
Darkshredder [Sat, 10 Apr 2021 15:14:52 +0000 (20:44 +0530)]
Disabled Coverage status checks

3 years agoadd badge for codecov
Sarah Hoffmann [Sat, 10 Apr 2021 14:57:39 +0000 (16:57 +0200)]
add badge for codecov

3 years agoMerge pull request #2252 from darkshredder/code-coverage
Sarah Hoffmann [Sat, 10 Apr 2021 14:37:12 +0000 (16:37 +0200)]
Merge pull request #2252 from darkshredder/code-coverage

Added Code coverage support using Codecov

3 years agosplit LANGUAGES parameter before use
Sarah Hoffmann [Fri, 9 Apr 2021 15:48:28 +0000 (17:48 +0200)]
split LANGUAGES parameter before use

The user supplies the languages as a comma-separated list.

3 years agoadd migration information for new configuration format
Sarah Hoffmann [Thu, 8 Apr 2021 09:01:19 +0000 (11:01 +0200)]
add migration information for new configuration format

3 years agoMerge pull request #2256 from lonvia/remove-reverseinplan-option
Sarah Hoffmann [Thu, 8 Apr 2021 08:54:16 +0000 (10:54 +0200)]
Merge pull request #2256 from lonvia/remove-reverseinplan-option

Remove ReverseInPlan option

3 years agoremove special handling for reversed queries in getGroupedSearches
Sarah Hoffmann [Thu, 8 Apr 2021 08:35:14 +0000 (10:35 +0200)]
remove special handling for reversed queries in getGroupedSearches

getGroupedSearches is guaranteed not to be called with reversed
structured queries, so there is no need to have special exclusion
code.

3 years agoremove reverseInPlan option from Geocode
Sarah Hoffmann [Thu, 8 Apr 2021 08:19:27 +0000 (10:19 +0200)]
remove reverseInPlan option from Geocode

Disabling query reversal is no longer possible in the configuration,
so there is no need to keep this as an option. Reversal is
automatically disabled for structured search only.

3 years agoprepare 3.7.0 release v3.7.0
Sarah Hoffmann [Tue, 6 Apr 2021 19:23:29 +0000 (21:23 +0200)]
prepare 3.7.0 release

3 years agodocs: minor spelling corrections
Sarah Hoffmann [Tue, 6 Apr 2021 14:09:53 +0000 (16:09 +0200)]
docs: minor spelling corrections

3 years agodocs: unpacking tiger data is no longer necessary
Sarah Hoffmann [Tue, 6 Apr 2021 13:56:08 +0000 (15:56 +0200)]
docs: unpacking tiger data is no longer necessary

3 years agoMerge pull request #2250 from lonvia/save-transliterated-housenumbers
Sarah Hoffmann [Mon, 5 Apr 2021 13:48:22 +0000 (15:48 +0200)]
Merge pull request #2250 from lonvia/save-transliterated-housenumbers

Switch to saving transliterated housenumbers in placex

3 years agoFixed BDD tests coverage reports
Darkshredder [Mon, 5 Apr 2021 01:00:31 +0000 (06:30 +0530)]
Fixed BDD tests coverage reports

3 years agoadd migration for transliterated housenumbers
Sarah Hoffmann [Fri, 2 Apr 2021 15:28:52 +0000 (17:28 +0200)]
add migration for transliterated housenumbers

3 years agouse new transliteration in initial housenumber word computation
Sarah Hoffmann [Thu, 1 Apr 2021 16:52:06 +0000 (18:52 +0200)]
use new transliteration in initial housenumber word computation

The new create_housenumber_id() function splits housenumber
lists correctly. Otherwise there is no difference.

3 years agocorrectly handle housenumber lists
Sarah Hoffmann [Mon, 29 Mar 2021 15:36:44 +0000 (17:36 +0200)]
correctly handle housenumber lists

Lists are now standardised to use a semicolon separator.

3 years agomove transliteration of housenumbers into indexing
Sarah Hoffmann [Mon, 29 Mar 2021 14:45:09 +0000 (16:45 +0200)]
move transliteration of housenumbers into indexing

Housenumbers are now saved in transliterated form in the housenumber
column. This saves the transliteration step during lookup.

3 years agotests for finding non-ascii housenumbers
Sarah Hoffmann [Mon, 29 Mar 2021 14:36:45 +0000 (16:36 +0200)]
tests for finding non-ascii housenumbers

3 years agoreturn housenumbers always from address field
Sarah Hoffmann [Mon, 29 Mar 2021 07:36:56 +0000 (09:36 +0200)]
return housenumbers always from address field

This means that we can use normalized versions of the
housenumber in the housenumber field as it is no longer
a user visible field.

3 years agoMerge pull request #2248 from darkshredder/special-term-test
Sarah Hoffmann [Sat, 3 Apr 2021 16:31:01 +0000 (18:31 +0200)]
Merge pull request #2248 from darkshredder/special-term-test

Added Test for TokenSpecialTerm

3 years agoAdded Test for TokenSpecialTerm
Darkshredder [Thu, 1 Apr 2021 23:19:05 +0000 (04:49 +0530)]
Added Test for TokenSpecialTerm

3 years agoMerge pull request #2247 from lonvia/index-for-housenumber-lookup
Sarah Hoffmann [Thu, 1 Apr 2021 16:35:00 +0000 (18:35 +0200)]
Merge pull request #2247 from lonvia/index-for-housenumber-lookup

Index for housenumber lookup

3 years agoadd recommendation for Postgresql 11+
Sarah Hoffmann [Thu, 1 Apr 2021 12:37:20 +0000 (14:37 +0200)]
add recommendation for Postgresql 11+

3 years agouse non-key index to speed up housenumber search
Sarah Hoffmann [Thu, 1 Apr 2021 12:29:34 +0000 (14:29 +0200)]
use non-key index to speed up housenumber search

On Postgresql versions 11+ add an index to speed up the lookup
of housenumbers for terms found in search_name. This is really
just a band-aid around the query planer's interpretation of the
query.

3 years agoAdded code-cov Support for Code Coverage
Darkshredder [Tue, 30 Mar 2021 23:30:03 +0000 (05:00 +0530)]
Added code-cov Support for Code Coverage

3 years agoMerge pull request #2243 from darkshredder/XML-format-fix
Sarah Hoffmann [Tue, 30 Mar 2021 07:19:01 +0000 (09:19 +0200)]
Merge pull request #2243 from darkshredder/XML-format-fix

Fixed: XML format: more_url points to localhost, not base URL

3 years agoMerge pull request #2244 from AntoJvlt/import-special-phrases-tests-cleaning
Sarah Hoffmann [Tue, 30 Mar 2021 07:17:27 +0000 (09:17 +0200)]
Merge pull request #2244 from AntoJvlt/import-special-phrases-tests-cleaning

Cleaned tests for special phrases.

3 years agoAdded HTTP_HOST to if statement
Darkshredder [Mon, 29 Mar 2021 21:32:55 +0000 (03:02 +0530)]
Added HTTP_HOST to if statement

3 years agoCleaned tests of exceptions and fix phrase_settings.json test file name.
AntoJvlt [Mon, 29 Mar 2021 20:07:29 +0000 (22:07 +0200)]
Cleaned tests of exceptions and fix phrase_settings.json test file name.

3 years agofixed: XML format: more_url points to localhost, not base URL
Darkshredder [Mon, 29 Mar 2021 19:32:43 +0000 (01:02 +0530)]
fixed: XML format: more_url points to localhost, not base URL

3 years agoMerge pull request #2234 from darkshredder/add-man-page
Sarah Hoffmann [Mon, 29 Mar 2021 12:25:10 +0000 (14:25 +0200)]
Merge pull request #2234 from darkshredder/add-man-page

Added Manual page for Nominatim tool

3 years agoallow sorting by housenumbers for rare street names
Sarah Hoffmann [Mon, 29 Mar 2021 10:06:51 +0000 (12:06 +0200)]
allow sorting by housenumbers for rare street names

Usually we don't narrow down search results by house number when
only a street name is given because there may be a lot of rows
to cross check when the street name is very frequent. However,
when it is known to be rare, the housenumber check may be done
anyway.

Fixes #2238.

3 years agoUpdate manpage after rebase
Darkshredder [Mon, 29 Mar 2021 08:57:06 +0000 (14:27 +0530)]
Update manpage after rebase

3 years agoNominatim/cli.py rebase fixes
Darkshredder [Mon, 29 Mar 2021 08:46:41 +0000 (14:16 +0530)]
Nominatim/cli.py rebase fixes

3 years agoRebase with master
Darkshredder [Mon, 29 Mar 2021 08:30:45 +0000 (14:00 +0530)]
Rebase with master

3 years agofixed indentation and used sed to remove AUTHORS section
Darkshredder [Wed, 24 Mar 2021 15:08:14 +0000 (20:38 +0530)]
fixed indentation and used sed to remove AUTHORS section

3 years agoAdded Manual page and fixed documentation
Darkshredder [Tue, 23 Mar 2021 02:40:53 +0000 (08:10 +0530)]
Added Manual page and fixed documentation

3 years agoMerge pull request #2228 from AntoJvlt/import-special-phrases-porting-python
Sarah Hoffmann [Mon, 29 Mar 2021 07:49:35 +0000 (09:49 +0200)]
Merge pull request #2228 from AntoJvlt/import-special-phrases-porting-python

Import special phrases porting python

3 years agoChange command 'import-special-phrases --from-wiki' to 'special-phrases --import...
AntoJvlt [Fri, 26 Mar 2021 00:57:51 +0000 (01:57 +0100)]
Change command 'import-special-phrases --from-wiki' to 'special-phrases --import-from-wiki'.

3 years agoErrors fixes, Cleaning code, Improvement and addition of tests
AntoJvlt [Fri, 26 Mar 2021 00:53:33 +0000 (01:53 +0100)]
Errors fixes, Cleaning code, Improvement and addition of tests

3 years agoEncapsulation of tools/special_phrases.py into SpecialPhrasesImporter class and add...
AntoJvlt [Wed, 24 Mar 2021 13:26:52 +0000 (14:26 +0100)]
Encapsulation of tools/special_phrases.py into SpecialPhrasesImporter class and add new tests.

3 years agoCode cleaning, tests simplification and use of python3-icu package
AntoJvlt [Mon, 22 Mar 2021 22:56:24 +0000 (23:56 +0100)]
Code cleaning, tests simplification and use of python3-icu package

3 years agoUpdated documentation for PyICU support
AntoJvlt [Mon, 22 Mar 2021 00:46:46 +0000 (01:46 +0100)]
Updated documentation for PyICU support

3 years agoIntroduction of PyICU for transliteration in python. Reversed changes in normalizatio...
AntoJvlt [Sun, 21 Mar 2021 23:58:49 +0000 (00:58 +0100)]
Introduction of PyICU for transliteration in python. Reversed changes in normalization.sql.

3 years agoAdded wrapper in specialphrases.php to call corresponding nominatim command.
AntoJvlt [Sun, 21 Mar 2021 23:16:39 +0000 (00:16 +0100)]
Added wrapper in specialphrases.php to call corresponding nominatim command.

3 years agoChanged phrase_settings.py to phrase-settings.json and added migration function for...
AntoJvlt [Sun, 21 Mar 2021 23:07:55 +0000 (00:07 +0100)]
Changed phrase_settings.py to phrase-settings.json and added migration function for old php settings file.

3 years agoChanged phrase_settings.py to phrase-settings.json and added migration function for...
AntoJvlt [Sun, 21 Mar 2021 23:07:55 +0000 (00:07 +0100)]
Changed phrase_settings.py to phrase-settings.json and added migration function for old php settings file.

3 years agoMerge pull request #2233 from lonvia/index-for-postcode-ids
Sarah Hoffmann [Tue, 23 Mar 2021 08:18:10 +0000 (09:18 +0100)]
Merge pull request #2233 from lonvia/index-for-postcode-ids

Create postcode id index earlier

3 years agocreate postcode id index earlier
Sarah Hoffmann [Mon, 22 Mar 2021 21:24:56 +0000 (22:24 +0100)]
create postcode id index earlier

Now that the indexer takes care of indexing the postcode tables,
the id index is needed to find the rows to index.

3 years agoMerge pull request #2231 from mtmail/correct-cli-help-page
Sarah Hoffmann [Sun, 21 Mar 2021 15:52:20 +0000 (16:52 +0100)]
Merge pull request #2231 from mtmail/correct-cli-help-page

nominatim -h was printing wrong text for lookup and details

3 years agoavoid division by zero in progress meter
Sarah Hoffmann [Sun, 21 Mar 2021 15:47:22 +0000 (16:47 +0100)]
avoid division by zero in progress meter

On Windows systems the timer may not be accurate enough to measure
the time between init() and done(). Avoid computing statistics with
a diff time of 0 in such cases.

Fixes #2230.

3 years agonominatim -h was priting wrong text for lookup and details
marc tobias [Sun, 21 Mar 2021 15:06:41 +0000 (16:06 +0100)]
nominatim -h was priting wrong text for lookup and details

3 years agoDeleted specialphrases.php and phrase_settings.php
AntoJvlt [Sat, 20 Mar 2021 18:48:05 +0000 (19:48 +0100)]
Deleted specialphrases.php and phrase_settings.php

3 years agoUpdated specialphrases_testdb.sql
AntoJvlt [Sat, 20 Mar 2021 18:17:03 +0000 (19:17 +0100)]
Updated specialphrases_testdb.sql

3 years agoPorted functions for the import of special phrases from php to python.
AntoJvlt [Sat, 20 Mar 2021 17:55:08 +0000 (18:55 +0100)]
Ported functions for the import of special phrases from php to python.

- the command is now --import-special-phrases
- the output is not an sql file anymore, data are directly imported to the database.
- the little part on the documentation (section data import) has been modified.

3 years agobdd tests: make indexing less verbose
Sarah Hoffmann [Sat, 20 Mar 2021 09:39:29 +0000 (10:39 +0100)]
bdd tests: make indexing less verbose

Do not print progress info for indexing when there is an error
in the BDD tests.

3 years agoMerge pull request #2219 from lonvia/bdd-test-remove-php
Sarah Hoffmann [Wed, 17 Mar 2021 10:40:34 +0000 (11:40 +0100)]
Merge pull request #2219 from lonvia/bdd-test-remove-php

BDD tests: run all setup via nominatim Python library

3 years agobdd: run all setup via nominatim Python library
Sarah Hoffmann [Tue, 16 Mar 2021 21:13:33 +0000 (22:13 +0100)]
bdd: run all setup via nominatim Python library

Drops all calls to PHP utility functions. nominatim cli functions
are used where possible, to stay as close to the final code as
possible with the tests.

By removing the PHP calls, the test code now only uses osm2pgsql and
the database module from the build directory.

3 years agoMerge pull request #2216 from lonvia/fix-reverse-interpolation
Sarah Hoffmann [Mon, 15 Mar 2021 13:08:54 +0000 (14:08 +0100)]
Merge pull request #2216 from lonvia/fix-reverse-interpolation

Reverse: do not prefer interpolations over closer housenumbers

3 years agoreverse: do not prefer interpolations over closer housenumbers
Sarah Hoffmann [Mon, 15 Mar 2021 09:50:04 +0000 (10:50 +0100)]
reverse: do not prefer interpolations over closer housenumbers

Always look up the closest housenumber before looking up
interpolations. This ensures that closer housenumbers are
preferred over interpolations.

Fixes #2214.

3 years agoMerge pull request #2212 from darkshredder/country-name
Sarah Hoffmann [Mon, 15 Mar 2021 08:36:06 +0000 (09:36 +0100)]
Merge pull request #2212 from darkshredder/country-name

Ported createCountryNames() to python and Added tests

3 years agoAdd setup.php
Darkshredder [Sun, 14 Mar 2021 09:32:30 +0000 (15:02 +0530)]
Add setup.php

3 years agofix template variable name
Sarah Hoffmann [Sat, 13 Mar 2021 11:05:53 +0000 (12:05 +0100)]
fix template variable name

3 years agoMerge pull request #2213 from lonvia/tweak-search-weights
Sarah Hoffmann [Fri, 12 Mar 2021 14:47:36 +0000 (15:47 +0100)]
Merge pull request #2213 from lonvia/tweak-search-weights

Some more tweaking of the ranking of search interpretations

3 years agoLinting fix
Darkshredder [Fri, 12 Mar 2021 12:58:47 +0000 (18:28 +0530)]
Linting fix

3 years agorefactored tests and made changes to code for easy readibility
Darkshredder [Fri, 12 Mar 2021 12:53:20 +0000 (18:23 +0530)]
refactored tests and made changes to code for easy readibility

3 years agoPorted createCountryNames() to python and added tests
Darkshredder [Fri, 12 Mar 2021 04:58:41 +0000 (10:28 +0530)]
Ported createCountryNames() to python and added tests

3 years agoMerge pull request #2204 from darkshredder/tiger-data
Sarah Hoffmann [Thu, 11 Mar 2021 21:48:38 +0000 (22:48 +0100)]
Merge pull request #2204 from darkshredder/tiger-data

Ported tiger-data-import to Python and Added Tarball Support

3 years agodo not mix partial names with other words
Sarah Hoffmann [Thu, 11 Mar 2021 21:44:49 +0000 (22:44 +0100)]
do not mix partial names with other words

As soon as a housenumber, postcode, etc. appear, the name term
must obviously be closed and no further partial terms can be
appended.

3 years agomake linter happy
Sarah Hoffmann [Thu, 11 Mar 2021 20:14:23 +0000 (21:14 +0100)]
make linter happy

3 years agoavoid multi-term partials in names
Sarah Hoffmann [Thu, 11 Mar 2021 19:42:37 +0000 (20:42 +0100)]
avoid multi-term partials in names

Names are either full words or single-word partial names.
Searching for multi-word partials yields exactly the same
result as with full words.

3 years agohigher penalty for special searches
Sarah Hoffmann [Thu, 11 Mar 2021 19:34:21 +0000 (20:34 +0100)]
higher penalty for special searches

Adds a general higher penalty for special search term and an
additional one if the term is anywhere but the beginning or the
end. Also housenumbers and special searches together are less
likely.

3 years agodo not mix partial and full name terms
Sarah Hoffmann [Thu, 11 Mar 2021 19:22:54 +0000 (20:22 +0100)]
do not mix partial and full name terms

If NameNonSearch already contains a partial term, then a
full term must not be added to the Name list anymore.

3 years agoadd one-rank penalty for using partial search
Sarah Hoffmann [Thu, 11 Mar 2021 16:34:23 +0000 (17:34 +0100)]
add one-rank penalty for using partial search

Ensures that full matches are preferred over partial ones even when
the full word consists of only one term.

3 years agofix result splitting for last search group
Sarah Hoffmann [Thu, 11 Mar 2021 16:14:46 +0000 (17:14 +0100)]
fix result splitting for last search group

When we are in the final iteration of the search groups, it is not
possible to further delay the results. Unconditionally use the
results with the best rank instead.

3 years agogive preference to full words in address, too
Sarah Hoffmann [Thu, 11 Mar 2021 14:03:36 +0000 (15:03 +0100)]
give preference to full words in address, too

Full word terms are already preferred for the name part. Adding
only one-word partials to the address, makes it impossible to
give a similar preference for the address part. Each term adds
a rank penalty. The problem here is that we interpret the query
forwards and backwards. Having different penalty systems for
name and address means that the same term ends up with different
penalties and that often leads to interpretations of the wrong
direction being in the way.