From b1bfb2dd954ba3e0c511ede609c0298f642e737c Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 9 Aug 2022 12:06:25 +0200 Subject: [PATCH] raise the similarity matcher percentage --- .../Search/SimilarPersonMatcher.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php b/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php index c046c8947..b480e0ba7 100644 --- a/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php +++ b/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php @@ -27,15 +27,9 @@ class SimilarPersonMatcher public const SIMILAR_SEARCH_ORDER_BY_SIMILARITY = 'similarity'; - /** - * @var AuthorizationHelper - */ - protected $authorizationHelper; + protected AuthorizationHelper $authorizationHelper; - /** - * @var EntityManagerInterface - */ - protected $em; + protected EntityManagerInterface $em; protected PersonNotDuplicateRepository $personNotDuplicateRepository; @@ -62,7 +56,7 @@ class SimilarPersonMatcher public function matchPerson( Person $person, - float $precision = 0.15, + float $precision = 0.35, string $orderBy = self::SIMILAR_SEARCH_ORDER_BY_SIMILARITY, bool $addYearComparison = false ) {