forked from hans/Nominatim
Merge pull request #2728 from lonvia/allow-more-partials
Allow search for partials consisting of 3 or more words
This commit is contained in:
@@ -264,6 +264,8 @@ class SearchDescription
|
|||||||
{
|
{
|
||||||
if (empty($this->aName)) {
|
if (empty($this->aName)) {
|
||||||
$this->bNameNeedsAddress = $bNeedsAddress;
|
$this->bNameNeedsAddress = $bNeedsAddress;
|
||||||
|
} elseif ($bSearchable && count($this->aName) >= 2) {
|
||||||
|
$this->bNameNeedsAddress = false;
|
||||||
} else {
|
} else {
|
||||||
$this->bNameNeedsAddress &= $bNeedsAddress;
|
$this->bNameNeedsAddress &= $bNeedsAddress;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user