Page 1 sur 1

Recherche multichamp avec pertience

Posté : 01 sept. 2008, 12:14
par Vurtu
Bonjour,

J'ai un petit soucis sur une requete de recherche multi-champs et avec pertinance
Sur un seul champ, je m'en sors sans soucis ... mais là :s

Je vous donne la requete :

Code : Tout sélectionner

SELECT uid, pid, title, header FROM tx_hpotraining_list WHERE deleted=0 AND (sys_language_uid=0 OR sys_language_uid=-1) OR MATCH (title) AGAINST ("ma recherche") OR MATCH (header) AGAINST ("ma recherche") OR MATCH (objectives) AGAINST ("ma recherche") OR MATCH (program) AGAINST ("ma recherche") OR MATCH (for_what) AGAINST ("ma recherche") OR MATCH (added_value) AGAINST ("ma recherche") OR MATCH (in_pratice) AGAINST ("ma recherche") OR MATCH (more_infos) AGAINST ("ma recherche")
il me faut en gros, la maniere de récupérer la pertinence totale

Je ne pense pas que vous avez besoin du CREATE TABLE ...

[EDIT]
En fait, j'ai réussi à dépatouiller un peu, mais ca ne fonctionne plus ...
aucun résultat ...

Code : Tout sélectionner

SELECT uid, pid, title, header FROM tx_hpotraining_list WHERE deleted=0 AND (sys_language_uid=0 OR sys_language_uid=-1) AND MATCH (title, header, objectives, program, for_what, added_value, in_pratice, more_infos) AGAINST ("ma recherche")
Donc mon problème est : pourquoi ça fonctionne pas ?
[/EDIT]

[EDIT-2]
j'ai trouvé ...
Quand on fait une recherche il ignore les mots de moins de 3 caractères ... je sors

Merci quand même
[/EDIT-2]