SPIP is equipped with an integrated search engine. A page should be built then, to display the search results.
The search interface
In order to display the search interface, you just have to insert the following tag:
#FORMULAIRE_RECHERCHE
By default, the form sends the requests to a page recherche.php3; therefore, you have to create a template recherche.html in order to display the results.
You can use another results page, which requires the tag to be:
[(#FORMULAIRE_RECHERCHE|address.php3)]
address.php3 being the page to which you will send the visitor.
The results template
The loops allowing the display of the search results were covered in: ARTICLES, RUBRIQUES and BREVES. As a matter of fact, you can search not only articles but also sections and news items.
The only difference with what is covered in these loops pages is the choice of the selection criterion, which must be {recherche}. The display criteria and the loops tags are unchanged.
However, in order to sort the results by relevance, it is preferred to use the new display criterion: par points.
Finally, you can use the tag #POINTS, which indicates the relevance of the results (be aware that in absolute terms, this value has little significance, it is useful only to sort the results).
To display the visitor’s request, you can use the tag #RECHERCHE ([SPIP 1.5]; for the previous versions of SPIP, you can use the PHP code: <?php echo $recherche; ?> ).

SPIP 1.9.2