mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-05 07:19:49 +00:00
raise the similarity matcher percentage
This commit is contained in:
parent
e42355c0d1
commit
b1bfb2dd95
@ -27,15 +27,9 @@ class SimilarPersonMatcher
|
|||||||
|
|
||||||
public const SIMILAR_SEARCH_ORDER_BY_SIMILARITY = 'similarity';
|
public const SIMILAR_SEARCH_ORDER_BY_SIMILARITY = 'similarity';
|
||||||
|
|
||||||
/**
|
protected AuthorizationHelper $authorizationHelper;
|
||||||
* @var AuthorizationHelper
|
|
||||||
*/
|
|
||||||
protected $authorizationHelper;
|
|
||||||
|
|
||||||
/**
|
protected EntityManagerInterface $em;
|
||||||
* @var EntityManagerInterface
|
|
||||||
*/
|
|
||||||
protected $em;
|
|
||||||
|
|
||||||
protected PersonNotDuplicateRepository $personNotDuplicateRepository;
|
protected PersonNotDuplicateRepository $personNotDuplicateRepository;
|
||||||
|
|
||||||
@ -62,7 +56,7 @@ class SimilarPersonMatcher
|
|||||||
|
|
||||||
public function matchPerson(
|
public function matchPerson(
|
||||||
Person $person,
|
Person $person,
|
||||||
float $precision = 0.15,
|
float $precision = 0.35,
|
||||||
string $orderBy = self::SIMILAR_SEARCH_ORDER_BY_SIMILARITY,
|
string $orderBy = self::SIMILAR_SEARCH_ORDER_BY_SIMILARITY,
|
||||||
bool $addYearComparison = false
|
bool $addYearComparison = false
|
||||||
) {
|
) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user