Changeset 82387 in spip-zone


Ignore:
Timestamp:
May 15, 2014, 1:12:55 PM (5 years ago)
Author:
rastapopoulos@…
Message:

Ajouter un define pour configurer l'index par défaut.

Location:
_plugins_/indexer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/trunk/inc/indexer.php

    r82376 r82387  
    66defined('SPHINX_SERVER_HOST') || define('SPHINX_SERVER_HOST', '127.0.0.1');
    77defined('SPHINX_SERVER_PORT') || define('SPHINX_SERVER_PORT', 9306);
    8 
     8defined('SPHINX_DEFAULT_INDEX') || define('SPHINX_DEFAULT_INDEX', 'spip');
    99
    1010// Charge les classes possibles de l'indexer
  • _plugins_/indexer/trunk/prive/squelettes/contenu/indexer.html

    r82376 r82387  
    88
    99$indexer->registerStorage(
    10     new Indexer\Storage\Sphinx(new Sphinx\SphinxQL(SPHINX_SERVER_HOST, SPHINX_SERVER_PORT), 'spip')
     10    new Indexer\Storage\Sphinx(new Sphinx\SphinxQL(SPHINX_SERVER_HOST, SPHINX_SERVER_PORT), SPHINX_DEFAULT_INDEX)
    1111);
    1212
Note: See TracChangeset for help on using the changeset viewer.