All that’s needed is to include the search loop inside another section loop that select the top level sections only; inside the search loop itself, we then add in the "id_secteur" criterion to limit the search to the current sector.
<BOUCLE_secteurs(RUBRIQUES){racine}>
<B_recherche>
<b>#TITRE</b>
<ul>
<BOUCLE_recherche(ARTICLES){recherche}{id_secteur}{par points}{inverse}{0,5}>
<li><a href="#URL_ARTICLE">#TITRE </a>
</BOUCLE_recherche>
</ul><hr>
</B_recherche>
</BOUCLE_secteurs>
Note that the sector title is only displayed if the search provides successful results for the sector in question. Aside from that, each sector is restricted to displaying only the top five classed articles in decreasing order of relevancy.
It is important, however, to note that the search will be performed as many times as there are sectors (at the root level), so the processing time could be quite long.