Changeset 107306 in spip-zone


Ignore:
Timestamp:
Nov 3, 2017, 12:32:12 PM (22 months ago)
Author:
fil@…
Message:

etat de l'indexation et facettes standard dans ?exec=indexer

Location:
_plugins_/indexer/branches/v1/prive/squelettes
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/branches/v1/prive/squelettes/contenu/indexer.html

    r82681 r107306  
    1 <h1>Test de l'indexer</h1>
     1<h1>Indexation Sphinx</h1>
    22
    33<?php
    44
    55if (_request('run') || _request('continue')) {
     6
     7        echo "<h2>Indexation en cours</h2>\n";
     8
    69    include_spip('inc/indexer');
    710   
     
    1316
    1417    $SpipSourcesIndexer = new Spip\Indexer\Sources\SpipSourcesIndexer($indexer, $sources);
    15     $SpipSourcesIndexer->setTablesLiensAuto();
    1618
    1719    if (_request('run')) {
     
    2729    }
    2830}
     31
     32
     33?>
     34
     35
     36<B_test_sphinx>
     37<BOUCLE_test_sphinx(SPHINX)
     38        {0,1}
     39        {!par date_indexation}
     40>[<h2>Dernier contenu indexé</h2>
     41(#VALEUR|print)]</BOUCLE_test_sphinx>
     42
     43</B_test_sphinx>
     44
     45<p class="error">Base d'indexation vide ou en erreur.</p>
     46[(#SPHINX_META|print)]
     47
     48<//B_test_sphinx>
  • _plugins_/indexer/branches/v1/prive/squelettes/navigation/indexer.html

    r82456 r107306  
    1 
    2 <h2>Indexer les contenus</h2>
    3 
    41<div class='liste'>
    52    <ul class='liste-items'>
    6         <li class='item'><a href="[(#SELF|parametre_url{continue,''}|parametre_url{run,1})]">Démarrer</a></li>
     3        <li class='item'><a href="[(#SELF|parametre_url{continue,''}|parametre_url{run,1})]">Démarrer l’indexation</a></li>
    74        [(#CONFIG{indexer/indexing/stats}|oui)
    85        <li class='item'><a href="[(#SELF|parametre_url{continue,1}|parametre_url{run,''})]">Continuer</a></li>]
     
    107</div>
    118
    12 [(#ENV{continue}|non|et{#ENV{run}|non}|oui)
    13 [(#CONFIG{indexer/indexing/stats}|oui)
    14 <h3>Dernière indexation</h3>
    15 <pre>
    16 [(#CONFIG{indexer/indexing/stats}|print_r{1})]
    17 </pre>
    18 ]]
     9
     10<dl>
     11<dt>Connexion</dt>
     12<dd>#EVAL{SPHINX_SERVER_HOST}:#EVAL{SPHINX_SERVER_PORT}</dd>
     13<dt>Index</dt>
     14<dd>#EVAL{SPHINX_DEFAULT_INDEX}</dd>
     15<B_test_sphinx>
     16<dt>Contenus indexés</dt>
     17<dd>
     18[(#SPHINX_FACETS|print)]
     19<BOUCLE_test_sphinx(SPHINX)
     20        {facet source, properties.source ORDER BY COUNT(*) DESC}
     21        {facet objet, properties.objet ORDER BY COUNT(*) DESC}
     22        {facet lang, properties.lang ORDER BY COUNT(*) DESC}
     23        {facet secteur, properties.secteur ORDER BY COUNT(*) DESC}
     24        {facet statut, properties.statut ORDER BY COUNT(*) DESC}
     25        {facet authors, properties.authors ORDER BY COUNT(*) DESC}
     26        {facet tags, properties.tags ORDER BY COUNT(*) DESC}
     27        {0,1}
     28        {!par date_indexation}
     29> </BOUCLE_test_sphinx>
     30
     31[<hr>(#SPHINX_META|print)]
     32</B_test_sphinx>
     33</dd>
     34<dd class="error">Base d'indexation vide ou en erreur.</dd>
     35
     36[(#SPHINX_META|print)]
     37<//B_test_sphinx>
     38</dl>
Note: See TracChangeset for help on using the changeset viewer.