spip_auteurs_articles
table).
This pipeline receives an array of tables containing an array of table, field, weighting triplets (like the pipeline "rechercher_liste_des_champs").rechercher_liste_des_jointures
This pipeline, used in ecrire/inc/rechercher.php, is used to declare the searches that should be executed on other tables rather than the table explicitly referenced in a loop.
For example, a search for an author name for an ARTICLES loop returns the articles that this author has written (by searching in the
Example
Some modifications for thespip_articles
table:
function pluginPrefix_rechercher_liste_des_jointures($tables){
// search in the BIO field of authors when we search in the articles
$tables['article']['auteur']['bio'] = 2;
// search in the text of the keywords
$tables['article']['mot']['texte'] = 2;
// do not search in the documents
unset($tables['article']['document']);
return $tables;
}
Author Published : 07/12/09 Updated : 12/05/17
Translations : English, français