2016-11-03 04:03:20 +08:00
|
|
|
import ThreadSearchIndexStore from './thread-search-index-store'
|
2016-11-13 02:32:16 +08:00
|
|
|
import ContactSearchIndexer from './contact-search-indexer'
|
2016-11-22 05:49:57 +08:00
|
|
|
// import EventSearchIndexer from './event-search-indexer'
|
2017-01-16 10:28:04 +08:00
|
|
|
import SearchIndexer from './search-indexer'
|
2016-04-01 05:58:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
export function activate() {
|
2017-01-16 10:28:04 +08:00
|
|
|
const indexer = new SearchIndexer()
|
|
|
|
ThreadSearchIndexStore.activate(indexer)
|
|
|
|
ContactSearchIndexer.activate(indexer)
|
2016-11-22 05:49:57 +08:00
|
|
|
// TODO Calendar feature has been punted, we will disable this indexer for now
|
2017-01-16 10:28:04 +08:00
|
|
|
// EventSearchIndexer.activate(indexer)
|
2016-04-01 05:58:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
2016-11-03 04:03:20 +08:00
|
|
|
ThreadSearchIndexStore.deactivate()
|
2016-11-13 02:32:16 +08:00
|
|
|
ContactSearchIndexer.deactivate()
|
2016-11-22 05:49:57 +08:00
|
|
|
// EventSearchIndexer.deactivate()
|
2016-04-01 05:58:16 +08:00
|
|
|
}
|