rechercher_liste_des_champs
This pipeline specifies the fields to be considered when a search is performed on a given table.
It manipulates a 2-dimensional associative array composed like this:
-* the first key is the name of a SPIP object (article, rubrique...).
-* the other key is the name of a field (titre, texte...) to take into account for the search.
-* the value is the weighting coefficient: the higher this value is, the more points are attributed to a result found in the corresponding field.
Example
function prefixPlugin_rechercher_liste_des_champs($tables){
// add a field 'town' to the articles
$tables['article']['town'] = 3;
// hide a field from the search process
unset($tables['rubrique']['descriptif']);
return $tables;
}
Author Published : 07/12/09 Updated : 30/05/10
Translations : English, français