summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Elastic/Role/Object.pm
AgeCommit message (Collapse)AuthorFilesLines
2017-07-28Bug 1383802 - Elasticsearch indexed documents lack an _id based on the ↵Dylan William Hardison1-0/+6
object's primary key
2017-07-20Bug 1381869 - Use separate elasticsearch index for Bugzilla::UserDylan William Hardison1-1/+3
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-01-04Bug 1307478 - Elasticsearch Indexer / Bulk IndexerDylan William Hardison1-0/+48