mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
Modifiy the range of address_rank, fix for issue #164
This commit is contained in:
@@ -657,7 +657,7 @@ class SearchDescription
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->sHouseNumber) {
|
if ($this->sHouseNumber) {
|
||||||
$aTerms[] = 'address_rank between 16 and 27';
|
$aTerms[] = 'address_rank between 16 and 30';
|
||||||
} elseif (!$this->sClass || $this->iOperator == Operator::NAME) {
|
} elseif (!$this->sClass || $this->iOperator == Operator::NAME) {
|
||||||
if ($iMinAddressRank > 0) {
|
if ($iMinAddressRank > 0) {
|
||||||
$aTerms[] = "((address_rank between $iMinAddressRank and $iMaxAddressRank) or (search_rank between $iMinAddressRank and $iMaxAddressRank))";
|
$aTerms[] = "((address_rank between $iMinAddressRank and $iMaxAddressRank) or (search_rank between $iMinAddressRank and $iMaxAddressRank))";
|
||||||
|
|||||||
Reference in New Issue
Block a user