mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 14:02:12 +03:00
Merge pull request #2728 from lonvia/allow-more-partials
Allow search for partials consisting of 3 or more words
This commit is contained in:
commit
ecee5cf801
@ -264,6 +264,8 @@ class SearchDescription
|
||||
{
|
||||
if (empty($this->aName)) {
|
||||
$this->bNameNeedsAddress = $bNeedsAddress;
|
||||
} elseif ($bSearchable && count($this->aName) >= 2) {
|
||||
$this->bNameNeedsAddress = false;
|
||||
} else {
|
||||
$this->bNameNeedsAddress &= $bNeedsAddress;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user