forked from developmentseed/atrium_searchlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atrium_searchlight.environment.inc
103 lines (101 loc) · 2.52 KB
/
atrium_searchlight.environment.inc
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
/**
* Implementation of hook_searchlight_default_environments().
*/
function atrium_searchlight_searchlight_default_environments() {
$export = array();
$searchlight_environment = new SearchlightEnvironment;
$searchlight_environment->disabled = FALSE; /* Edit this to true to make a default searchlight_environment disabled initially */
$searchlight_environment->api_version = 1;
$searchlight_environment->name = 'search_global';
$searchlight_environment->view_display = 'search_listing:page_1';
$searchlight_environment->facets = array(
'node_status' => array(
'enabled' => 0,
'weight' => '-2',
'label' => '',
'items' => '5',
),
'node_created' => array(
'enabled' => 1,
'weight' => '-9',
'label' => '',
'items' => '10',
'granularity' => 'month',
'date_format' => 'F, Y',
),
'users_name' => array(
'enabled' => 1,
'weight' => '-7',
'label' => '',
'items' => '10',
),
'users_uid' => array(
'enabled' => 0,
'weight' => '-3',
'label' => '',
'items' => '5',
),
'node_type' => array(
'enabled' => 1,
'weight' => '-8',
'label' => '',
'items' => '10',
),
'node_og_ancestry_nid' => array(
'enabled' => 0,
'weight' => '-1',
'label' => '',
'items' => '5',
),
'casetracker_case_assign_to' => array(
'enabled' => 0,
'weight' => '2',
'label' => '',
'items' => '5',
),
'casetracker_case_case_priority_id' => array(
'enabled' => 0,
'weight' => '1',
'label' => '',
'items' => '5',
),
'casetracker_case_case_status_id' => array(
'enabled' => 0,
'weight' => '0',
'label' => '',
'items' => '5',
),
'casetracker_case_case_type_id' => array(
'enabled' => 0,
'weight' => '-4',
'label' => '',
'items' => '5',
),
'casetracker_case_pid' => array(
'enabled' => 0,
'weight' => '-5',
'label' => '',
'items' => '5',
),
'node_comment_statistics_last_updated' => array(
'enabled' => 0,
'weight' => '-6',
'label' => '',
'items' => '5',
'granularity' => 'month',
'date_format' => 'F, Y',
),
'search_query' => array(
'enabled' => 1,
'weight' => '-10',
'label' => '',
'items' => 1,
),
);
$searchlight_environment->options = array(
'facets_label' => 'Search facets',
);
$export['search_global'] = $searchlight_environment;
return $export;
}