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.


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
	return $tables;

Author Gilles Vincent Published : Updated : 30/05/10

Translations : English, français