Modifiy the range of address_rank, fix for issue #164

This commit is contained in:
(Joy) Yuanyue Ding
2020-07-08 17:47:38 +02:00
parent 7ecfcf7eaa
commit cac8a8df18

View File

@@ -657,7 +657,7 @@ class SearchDescription
}
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))";