fix(search): seuils word_similarity différenciés par champ
- name/provider : seuil 0.4 (textes courts, scores plus précis) - description : seuil 0.5 (textes longs, évite les faux positifs) - "auten" trouve désormais "Authentification JWT" via fuzzy sur le nom Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -75,8 +75,8 @@ export class ApisService {
|
|||||||
OR COALESCE(api.description, '') ILIKE :likeText
|
OR COALESCE(api.description, '') ILIKE :likeText
|
||||||
OR api.contact_functional_name ILIKE :likeText
|
OR api.contact_functional_name ILIKE :likeText
|
||||||
OR api.contact_technical_name ILIKE :likeText
|
OR api.contact_technical_name ILIKE :likeText
|
||||||
OR word_similarity(:text, api.name) > 0.5
|
OR word_similarity(:text, api.name) > 0.4
|
||||||
OR word_similarity(:text, api.provider) > 0.5
|
OR word_similarity(:text, api.provider) > 0.4
|
||||||
OR word_similarity(:text, COALESCE(api.description, '')) > 0.5
|
OR word_similarity(:text, COALESCE(api.description, '')) > 0.5
|
||||||
)`,
|
)`,
|
||||||
{ likeText: `%${parsed.text}%`, text: parsed.text },
|
{ likeText: `%${parsed.text}%`, text: parsed.text },
|
||||||
|
|||||||
Reference in New Issue
Block a user