-
Notifications
You must be signed in to change notification settings - Fork 235
/
Copy pathconfig.js
executable file
·135 lines (126 loc) · 5.6 KB
/
config.js
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/**
* This file contains the basic configuration settings for the banana webapp.
*/
define(['settings'],
function (Settings) {
"use strict";
return new Settings({
/**
* The default solr server and collection.
*
* Banana is designed such that one instance of the webapp can act as a query engine
* for multiple instances of Solr and multiple Solr collections. In this file, you can
* specify the default Solr server and the collection that stores the data to be
* visualized. Each dashboard that you create can (and typically will) override this
* setting.
*
* Note that the solr server address you specify must be resolvable from the browser
* i.e., from your users' machine. You probably want to set it to the FQDN and port
* number of your Solr host or the proxy that controls access to your Solr host.
* By default it is set to localhost:8983, which frequently
* works for development and testing, when you are running Solr, Banana and the
* browser on one development/testing machine.
*
* After configuring this file, we also suggest you edit the solr server and collection
* in the default dashboard (app/dashboards/default.json), which is a guided
* self-starter for building dashboards. You can later replace the pre-defined
* default.json with the dashboard you want your users to see when they first access
* your banana web application.
* @type {String}
*/
// Specify Solr server and core to store the data.
solr: "/solr/",
solr_core: "logs",
timefield: "timestamp_tdt",
/**
* The default Solr index to use for storing objects internal to Banana, such as
* stored dashboards. If you have been using a collection named kibana-int
* to save your dashboards (the default provided in Banana 1.2 and earlier), then you
* simply need to replace the string "banana-int" with "kibana-int" and your old
* dashboards will be accessible.
*
* This banana-int (or equivalent) collection must be created and available in the
* default solr server specified above, which serves as the persistence store for data
* internal to banana.
* @type {String}
*/
banana_index: "banana-int",
// Uncomment the following line to specify the URL of Solr server that will be used to store and load saved dashboards.
// If you specify a remote Solr server, then you need to enable CORS on it in order to allow dashboards to be saved or loaded.
// Also, you need to uncomment this same line in src/app/components/settings.js to enable banana_server config.
// Reference: https://github.com/lucidworks/banana/tree/fusion/resources/enable-cors
//
// banana_server: "http://localhost:8983/solr/",
banana_queryPipeline: "system_banana-default",
banana_indexPipeline: "system_banana-default",
/**
* Lucidworks Fusion settings
*
* USE_FUSION = true, mean that Banana will talk to Lucidworks Fusion APIs, instead of Solr.
* This mainly affect the APIs used to get the list of collections and schemas (fields).
*/
USE_FUSION: false,
apollo: "/api/apollo",
apollo_queryPipeline: "/api/apollo/query-pipelines/",
apollo_indexPipeline: "/api/apollo/index-pipelines/",
// Constants
SYSTEM_BANANA_QUERY_PIPELINE: "/api/apollo/query-pipelines/default/collections/system_banana",
SYSTEM_BANANA_INDEX_PIPELINE: "/api/apollo/index-pipelines/_system/collections/system_banana",
SYSTEM_BANANA_BLOB_API: "/api/apollo/blobs",
SYSTEM_BANANA_BLOB_ID_SUBTYPE_PARAM: "resourceType=banana", // for use when saving dashboards, to create metadata field resourceType=banana
SYSTEM_BANANA_BLOB_ID_SUBTYPE_QUERY: "resourceType=banana", // for use when searching dashboards in Blob Store
FUSION_API_STATIC_FIELDS: "/schema/fields",
FUSION_API_DYNAMIC_FIELDS: "/schema/dynamicfields",
FUSION_API_COLLECTIONS: "/api/apollo/collections",
/**
* The default settings will use /admin/luke API to retrieve all fields from Solr including
* dynamic fields (e.g. *_s, *_t, and etc). And also, it will use /admin/cores API to retrieve
* all cores/collections from Solr to populate the drop-down collection picker.
*
* You can disable the /admin APIs by setting USE_ADMIN_LUKE and USE_ADMIN_CORES flags to false.
* The effects are that the field list in Table panel will not be able to show the dynamic fields,
* and the drop-down collection picker will not work.
*
* If USE_ADMIN_LUKE is set to false, Banana will use /schema/fields API instead and dynamic fields
* will not show up in the field list.
*
* If USE_ADMIN_CORES is set to false, Banana will not be able to retrieve the list of Solr collections.
* And also, the dashboard alert about no collections returned from Solr will be disabled.
* @type {Boolean}
*/
USE_ADMIN_LUKE: true,
USE_ADMIN_CORES: true,
/**
* Panel modules available. Panels will only be loaded when they are defined in the
* dashboard. This list is used to populate the drop-down in the "add panel" interface.
* @type {Array}
*/
panel_names: [
'bar',
'histogram',
'map',
'table',
'filtering',
'timepicker',
'text',
'hits',
'column',
'graph',
'ticker',
'bettermap',
'query',
'significantTerms',
'terms',
'rangeFacet',
'heatmap',
'scatterplot',
'fullTextSearch',
'facet',
'tagcloud',
'timeseries',
'multiseries',
'sunburst',
'docviewer'
]
});
});