hello à tous,
J'ai une table en FULLTEXT avec 3 champs indexés (nom_produit,reference, descriptif1), en varchar pour un moteur de recherche.
Je fais des tests et dans un des enreg, j'ai inseré cet enregistrement :
J'ai ces requetes-ci qui me retourne un resultat :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3nom_produit : frodon reference : gollum ft pp 48 descriptif1 : blabla
et celles là non !! (incompréhensible) :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 SELECT nom_produit,reference, descriptif1, MATCH (nom_produit,reference, descriptif1) AGAINST ("*fro*" IN BOOLEAN MODE) as score FROM shop_product where MATCH (nom_produit,reference, descriptif1) AGAINST ("*fro*" IN BOOLEAN MODE); SELECT nom_produit,reference, descriptif1, MATCH (nom_produit,reference, descriptif1) AGAINST ("*goll*" IN BOOLEAN MODE) as score FROM shop_product where MATCH (nom_produit,reference, descriptif1) AGAINST ("*goll*" IN BOOLEAN MODE);
Quelqu'un a une explication ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 SELECT nom_produit,reference, descriptif1, MATCH (nom_produit,reference, descriptif1) AGAINST ("*don*" IN BOOLEAN MODE) as score FROM shop_product where MATCH (nom_produit,reference, descriptif1) AGAINST ("*don*" IN BOOLEAN MODE); SELECT nom_produit,reference, descriptif1, MATCH (nom_produit,reference, descriptif1) AGAINST ("*llum*" IN BOOLEAN MODE) as score FROM shop_product where MATCH (nom_produit,reference, descriptif1) AGAINST ("*llum*" IN BOOLEAN MODE); SELECT nom_produit,reference, descriptif1, MATCH (nom_produit,reference, descriptif1) AGAINST ("*pp*" IN BOOLEAN MODE) as score FROM shop_product where MATCH (nom_produit,reference, descriptif1) AGAINST ("*pp*" IN BOOLEAN MODE);
Merci
Fabrice
Partager