Recherche par mots clés mutiple
Posté : 23 mars 2009, 18:34
Bonjour j'ai ce code qui me permet uniquement recherche par expression exacte or j'aimerais pouvoir effectuer une recherche par mot multiple.
Par exemple dans une annonce j'ai ce texte: belle voiture verte diesel
Si je cherche "voiture verte" ça marche il trouve mon annonce
Par contre si je cherche "voiture diesel", rien n'est trouvé. Et c'est la mon problème ces deux mots existent dans mon annonce, mais mon moteur de recherche ne trouve rien!
Voici le code php:
Et le code html:
Je suis novice en la matière pourriez vous m'aider s'il vous plaît.
Merci d'avance

Par exemple dans une annonce j'ai ce texte: belle voiture verte diesel
Si je cherche "voiture verte" ça marche il trouve mon annonce
Par contre si je cherche "voiture diesel", rien n'est trouvé. Et c'est la mon problème ces deux mots existent dans mon annonce, mais mon moteur de recherche ne trouve rien!
Voici le code php:
Code : Tout sélectionner
$text_search = mosGetParam($_GET,'text_search','');Code : Tout sélectionner
<form action="<?php echo $url; ?>" method="get">
<input type="hidden" name="option" value="com_adsmanager" />
<input type="hidden" name="Itemid" value="<?php echo $itemid; ?>" />
<input type="hidden" name="page" value="search" />
<input class="inputbox" type="text" name="text_search" value="<?php echo $text_search; ?>" onblur="if(this.value=='') this.value='<?php echo $text_search; ?>';" onfocus="if(this.value=='<?php echo $text_search; ?>') this.value='';"/>Merci d'avance