Bug #40088
dictionnaire french_unaccent et accents
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
21 février 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
dictionnaire french et recherche "déchets" :
combo=# SELECT "search_indexedcell"."id", ts_rank((setweight(to_tsvector('french'::regconfig, COALESCE("search_indexedcell"."title", '')), 'A') || setweight(to_tsvector('french'::regconfig, COALESCE("search_indexedcell"."indexed_text", '')), 'A')), plainto_tsquery('déchets')) AS "rank" FROM "search_indexedcell" where id = 478; id | rank -----+---------- 478 | 0.759909
dictionnaire french_unaccent et recherche "déchets" :
combo=# SELECT "search_indexedcell"."id", ts_rank((setweight(to_tsvector('french_unaccent'::regconfig, COALESCE("search_indexedcell"."title", '')), 'A') || setweight(to_tsvector('french_unaccent'::regconfig, COALESCE("search_indexedcell"."indexed_text", '')), 'A')), plainto_tsquery('déchets')) AS "rank" FROM "search_indexedcell" where id = 478; id | rank -----+------ 478 | 0
dictionnaire french_unaccent et recherche "dechets" :
combo=# SELECT "search_indexedcell"."id", combo-# ts_rank((setweight(to_tsvector('french_unaccent'::regconfig, COALESCE("search_indexedcell"."title", '')), 'A') || setweight(to_tsvector('french_unaccent'::regconfig, COALESCE("search_indexedcell"."indexed_text", '')), 'A')), plainto_tsquery('dechets')) AS "rank" FROM "search_indexedcell" combo-# where id = 478; id | rank -----+---------- 478 | 0.759909
Il manque l'info de dictionnaire dans le plainto_tsquery, en la mettant, french_unaccent et recherche "déchets" :
combo=# SELECT "search_indexedcell"."id", ts_rank((setweight(to_tsvector('french_unaccent'::regconfig, COALESCE("search_indexedcell"."title", '')), 'A') || setweight(to_tsvector('french_unaccent'::regconfig, COALESCE("search_indexedcell"."indexed_text", '')), 'A')), plainto_tsquery('french_unaccent'::regconfig, 'déchets')) AS "rank" FROM "search_indexedcell" where id = 478; id | rank -----+---------- 478 | 0.759909
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-search-pass-dictionary-configuration-to-search-query.patch 0001-search-pass-dictionary-configuration-to-search-query.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit aa547dbfcacc50c5eb7ada1a8f31cc35c759f958 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Feb 21 16:16:19 2020 +0100 search: pass dictionary configuration to search query (#40088)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
search: pass dictionary configuration to search query (#40088)