-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsphinxconstants.php
53 lines (42 loc) · 1.96 KB
/
sphinxconstants.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
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
define ('OUTPUT_FILE', PATH_PLUGINS . DS . 'SphinxSearch' . DS . 'install' . DS . 'output.txt');
define ('PID_FILE', PATH_PLUGINS . DS . 'SphinxSearch' . DS . 'install' . DS . 'pid.txt');
define ('ERROR_FILE', PATH_PLUGINS . DS . 'SphinxSearch' . DS . 'install' . DS . 'error.txt');
define ('STOP_WORDS_FILE', PATH_PLUGINS . DS . 'SphinxSearch' . DS . 'assests'. DS .'stop_words.txt');
define ('WORD_FORMS_FILE', PATH_PLUGINS . DS . 'SphinxSearch' . DS . 'assests'. DS .'word_forms.txt');
define ('SS_INSTALL_DIR', PATH_PLUGINS . DS . 'SphinxSearch' . DS. 'install'); //install path if using packaged installer
//error logs
define ('SS_SUCCESS', 1);
define ('SS_WARNING', 2);
define ('SS_FATAL_ERROR', 3);
//@todo should be a setting
define ('SS_PREVIEW_BODY_LIMIT', 150); //tooltip hover preview limit
define ('SS_BODY_LIMIT', 1000); //regular body text limit in main search
define('SS_DELTA_INDEX', 'delta'); //there is still a prefix
define('SS_MAIN_INDEX', 'main');
define('SS_STATS_INDEX', 'stats');
/**
*
* Collection of attributes that come from sphinx.conf
*
*/
//individual index names - rotate these by themselves
define ('SS_INDEX_MAIN',C('Plugin.SphinxSearch.Prefix', 'vss_').'main');
define ('SS_INDEX_DELTA',C('Plugin.SphinxSearch.Prefix', 'vss_').'delta');
define ('SS_INDEX_STATS',C('Plugin.SphinxSearch.Prefix', 'vss_').'stats');
//distributed index - search against this, but don't update this on itself
define ('SS_INDEX_DIST','vanilla');
//These are ONLY indexed
define ('SS_FIELD_BODY','body');
define ('SS_FIELD_TITLE','title');
define ('SS_FIELD_USERNAME','user');
//these are ONLY stored
define ('SS_ATTR_DOCID','docid');
define ('SS_ATTR_CATPERMID','catpermid');
define ('SS_ATTR_ISCOMMENT','iscomment');
define ('SS_ATTR_DOCDATEINSERTED','docdateinserted');
define ('SS_ATTR_COUNTVIEWS','countviews');
define ('SS_ATTR_COUNTCOMENTS','countcomments');
define ('SS_ATTR_CATID','catid');
define ('SS_ATTR_USERPHOTO','userphoto');
define ('SS_ATTR_USERID','userid');