[(#ENV{recherche}|?{ #SET{recherche,#ENV{recherche,''}|json_encode}, #SET{recherche,''} })] [(#SET{url, [(#VAL{#CONFIG{elasticsearch_config/url_serveur}/#CONFIG{elasticsearch_config/nom_alias}/[(#ENV{type_objet})/]_search})]})] #SET{query, #INCLURE{fond=json/elasticsearch_query,recherche=#GET{recherche},from=#ENV{debut_pagination},size=#ENV{nb_item,10},date_debut=#ENV{date_debut,''},date_fin=#ENV{date_fin,''}}} [(#SET{data, [(#GET{url}|phpcurl_get{[(#GET{query})]})]} )] [
(#VALEUR{total}|singulier_ou_pluriel{elasticsearch:nb_resultat, elasticsearch:nb_resultats}|sinon{<:elasticsearch:aucun_resultat:>}) <:elasticsearch:pour_votre_recherche{recherche=#ENV{recherche}}:>
] [(#REM) feinte pour obtenir une pagination sur le total en envoyer à elastic_query le from et le size via la pagination spip] #ANCRE_PAGINATION #SET{titre,''} #SET{body,''} [(#CLE|strpos{#VAL{title}}|oui)#SET{titre,#VALEUR|implode{(...)}}] [(#CLE|strpos{#VAL{body}}|oui)#SET{body,#VALEUR|implode{(...)}}]

#PAGINATION