summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Elastic.pm
AgeCommit message (Collapse)AuthorFilesLines
2017-08-26Bug 1394014 - Old abusive username appears in autocompleteDylan William Hardison1-1/+1
2017-07-20Bug 1381869 - Use separate elasticsearch index for Bugzilla::UserDylan William Hardison1-2/+1
This patch removes the concept of a single, bugzilla-wide index in favor of a per-class index. bugs and comments continue to use Bugzilla->params->{elasticsearch_index} but users use Bugzilla->params->{elasticsearch_index} . "_user". It is assured via the ChildObject trait (role) that comments will share the index with bugs, and we have kept the index for bugs/comments the same to avoid the multi-hour reindexing of production. Re-indexing users takes only five minutes. Subsequent work on this will allow use to version the index names and use aliases, but I wanted to keep this patch small. This patch also corrects some mistakes 1. $indexer->put_mapping() should not have been a public method. 2. Time::HiRes should be imported at the top of the file, not in a sub.
2017-05-24Bug 1348380 - Add param and user setting to control elasticsearch behaviorDylan William Hardison1-2/+13
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).
2017-05-24Bug 1307485 - Add code to run a subset of buglist.cgi search queries against ↵Dylan William Hardison1-0/+47
the ES backend
2017-03-21Bug 1307485 - Add code to run a subset of buglist.cgi search queries against ↵Dylan William Hardison1-47/+0
the ES backend Skipping this for this week's push.
2017-03-17Bug 1307485 - Add code to run a subset of buglist.cgi search queries against ↵Dylan William Hardison1-0/+47
the ES backend This not the cause of test failures, so should live on in master now.
2017-03-14Revert "Bug 1307485 - Add code to run a subset of buglist.cgi search queries ↵Dylan William Hardison1-47/+0
against the ES backend" This reverts commit 9c26c01867ca3e2af1e70c051140eea59c68c500.
2017-03-07Bug 1307485 - Add code to run a subset of buglist.cgi search queries against ↵Dylan William Hardison1-0/+47
the ES backend