Nominatim/lib
Sarah Hoffmann 7d2b6879c8 restrict postcode searches to postcode in first token
In structured queries we should only assume that it is
a postcode search when only the postcode and optionally
the country is given. If any other term is present, it
is better to avoid the search for postcode as it yields
too many bad searches. Given that the terms in a structured
query are ordered, this means that the postcode must be
the first token just like in the unstructured query.

Fixes #1988.
2020-10-06 14:08:31 +02:00
..
setup index admin boundaries before everything else 2020-08-18 15:17:09 +02:00
template encapsulate icon URL in a function 2020-05-17 16:46:45 +02:00
AddressDetails.php each address line must fill at most one geocodejson field 2020-05-27 11:16:27 +02:00
ClassTypes.php add descriptive term for address rank 24 2020-09-25 16:02:17 +02:00
cmd.php new PHP Nominatim\Shell class to wrap shell escaping 2020-04-12 03:50:40 +02:00
DatabaseError.php replace database abstraction DB with PDO 2019-03-09 00:18:15 +01:00
DB.php lonvia PR feedback 2020-04-26 03:33:15 +02:00
DebugHtml.php improve test coverage for reverse and debug output 2018-08-20 23:05:49 +02:00
DebugNone.php nicer formatting for Geocode debug output 2018-03-25 22:28:18 +02:00
Geocode.php remove dead code 2020-09-21 10:39:14 +02:00
init-cmd.php nicer formatting for Geocode debug output 2018-03-25 22:28:18 +02:00
init-website.php register shutdown function to handle out-of-memory errors 2019-05-21 18:41:06 +02:00
init.php starting PHP 5.4 get_magic_quotes_gpc() returns false, no need to check 2020-09-14 00:45:22 +02:00
lib.php ensure that ordering by importance is stable 2020-08-26 17:42:43 +02:00
log.php Fix SQL concatenation for new query log 2019-07-02 01:19:59 +02:00
output.php details: also look for interpolations when way id is given 2020-02-09 16:50:04 +01:00
ParameterParser.php unit tests for ParameterParser::hasSetAny 2020-02-19 16:55:17 +01:00
Phrase.php remove visibility modifier from constants again 2019-07-02 23:24:49 +02:00
PlaceLookup.php place lookup: filter places that have no details 2020-08-27 09:33:21 +02:00
Result.php fix phpcs offences 2018-11-20 23:05:56 +01:00
ReverseGeocode.php reverse: ignore place nodes without an address rank 2020-07-05 15:38:49 +02:00
SearchContext.php documentation wording: snipped->snippet 2020-02-18 22:48:27 +01:00
SearchDescription.php restrict postcode searches to postcode in first token 2020-10-06 14:08:31 +02:00
setup_functions.php checkModulePresence now raises exception instead of its callers 2019-04-02 18:37:11 +02:00
Shell.php new PHP Nominatim\Shell class to wrap shell escaping 2020-04-12 03:50:40 +02:00
SpecialSearchOperator.php add missing include 2017-10-08 17:13:41 +02:00
Status.php replace database abstraction DB with PDO 2019-03-09 00:18:15 +01:00
TokenCountry.php document tokens 2018-05-14 23:23:38 +02:00
TokenHousenumber.php document tokens 2018-05-14 23:23:38 +02:00
TokenList.php Rework word set computation 2019-06-29 18:22:31 +02:00
TokenPostcode.php document tokens 2018-05-14 23:23:38 +02:00
TokenSpecialTerm.php fix bad namespace for Operator class 2018-07-17 22:38:40 +02:00
TokenWord.php document tokens 2018-05-14 23:23:38 +02:00