source: spip-zone/_plugins_/indexer/trunk/inc/indexer.php @ 82389

Last change on this file since 82389 was 82389, checked in by marcimat@…, 7 years ago

Début d'indexation de tous les articles, par tranches

File size: 735 bytes
Line 
1<?php
2
3if (!defined('_ECRIRE_INC_VERSION')) return;
4
5// Constantes pour connexion à Sphinx
6defined('SPHINX_SERVER_HOST')   || define('SPHINX_SERVER_HOST', '127.0.0.1');
7defined('SPHINX_SERVER_PORT')   || define('SPHINX_SERVER_PORT', 9306);
8defined('SPHINX_DEFAULT_INDEX') || define('SPHINX_DEFAULT_INDEX', 'spip');
9
10// Charge les classes possibles de l'indexer
11require_once _DIR_PLUGIN_INDEXER . 'lib/Composer/Autoload/ClassLoader.php';
12
13$loader = new \Composer\Autoload\ClassLoader();
14
15// register classes with namespaces
16$loader->add('Indexer', _DIR_PLUGIN_INDEXER . 'lib');
17$loader->add('Sphinx',  _DIR_PLUGIN_INDEXER . 'lib');
18$loader->addPsr4('Spip\\Indexer\\Sources\\',  _DIR_PLUGIN_INDEXER . 'Sources');
19
20
21$loader->register();
Note: See TracBrowser for help on using the repository browser.