-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
executable file
·40 lines (32 loc) · 1.19 KB
/
plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* @package omeka
* @subpackage esearch
* @copyright 2017 Jason Zou
* @license http://www.apache.org/licenses/LICENSE-2.0.html
*/
if (!defined('ES_DIR')) define('ES_DIR', dirname(__FILE__));
// Plugin manager class:
require_once ES_DIR.'/ESearchPlugin.php';
// Elasticsearch PHP Client library:
require_once ES_DIR. 'vendor/autoload.php';
// ESearch utility classes:
require_once ES_DIR.'/lib/ESearch/Addon/Addon.php';
require_once ES_DIR.'/lib/ESearch/Addon/Config.php';
require_once ES_DIR.'/lib/ESearch/Addon/Field.php';
require_once ES_DIR.'/lib/ESearch/Addon/Indexer.php';
require_once ES_DIR.'/lib/ESearch/Addon/Manager.php';
require_once ES_DIR.'/lib/ESearch/Utils.php';
require_once ES_DIR.'/lib/ESearch/DbPager.php';
// Helpers:
require_once ES_DIR.'/helpers/ESearch_Helpers_View.php';
require_once ES_DIR.'/helpers/ESearch_Helpers_Index.php';
require_once ES_DIR.'/helpers/ESearch_Helpers_Facet.php';
// Forms:
require_once ES_DIR.'/forms/ESearch_Form_Server.php';
require_once ES_DIR.'/forms/ESearch_Form_Results.php';
require_once ES_DIR.'/forms/ESearch_Form_Reindex.php';
// Jobs:
require_once ES_DIR.'/jobs/ESearch_Job_Reindex.php';
$es = new ESearchPlugin();
$es->setUp();