Skip to content

Commit

Permalink
Merge pull request #1874 from joy-yyd/rank_modification
Browse files Browse the repository at this point in the history
 House number search fix for #164
  • Loading branch information
lonvia committed Jul 18, 2020
2 parents 1b95ec5 + cac8a8d commit 29602fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SearchDescription.php
Expand Up @@ -657,7 +657,7 @@ private function queryNamedPlace(&$oDB, $iMinAddressRank, $iMaxAddressRank, $iLi
}

if ($this->sHouseNumber) {
$aTerms[] = 'address_rank between 16 and 27';
$aTerms[] = 'address_rank between 16 and 30';
} elseif (!$this->sClass || $this->iOperator == Operator::NAME) {
if ($iMinAddressRank > 0) {
$aTerms[] = "((address_rank between $iMinAddressRank and $iMaxAddressRank) or (search_rank between $iMinAddressRank and $iMaxAddressRank))";
Expand Down

0 comments on commit 29602fe

Please sign in to comment.