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:
z3n
2026-06-17 09:04:47 +00:00
parent 498c6577e4
commit dbf5af81ca

View File

@@ -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 },