summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-19 22:52:00 +0200
committerDylan William Hardison <dylan@hardison.net>2017-05-24 20:24:54 +0200
commitffe838a923696f81e8d8e1f24c5dc7a568cbc6ac (patch)
tree92894c1e927204b529759e8c3e9078720ce5e8bc /Bugzilla/Install.pm
parent50fc9d77128db4f8565265047166c6ef61bac5c5 (diff)
downloadbugzilla-ffe838a923696f81e8d8e1f24c5dc7a568cbc6ac.tar.gz
bugzilla-ffe838a923696f81e8d8e1f24c5dc7a568cbc6ac.tar.xz
Bug 1348380 - Add param and user setting to control elasticsearch behavior
1) add an 'elasticsearch' param (configured via admin.cgi) that turns off all code that would attempt to connect to elasticsearch. 2) add a user preference that controls using elasticsearch for searches, which defaults to off for logged-in users. Anonymous users will default to using elasticsearch for the greater good. Note that elasticsearch, if available, will still power user-autocompletion (unless turned off as by the above parameter).
Diffstat (limited to 'Bugzilla/Install.pm')
-rw-r--r--Bugzilla/Install.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm
index edadbfecb..982f4a4fb 100644
--- a/Bugzilla/Install.pm
+++ b/Bugzilla/Install.pm
@@ -175,6 +175,12 @@ sub SETTINGS {
default => 'off',
category => 'API'
},
+ {
+ name => 'use_elasticsearch',
+ options => ['on', 'off'],
+ default => 'off',
+ category => 'Searching'
+ },
];
};