Mailspring/internal_packages/search-index/lib/main.es6

20 lines
652 B
Text
Raw Normal View History

import ThreadSearchIndexStore from './thread-search-index-store'
import ContactSearchIndexer from './contact-search-indexer'
2016-11-22 05:49:57 +08:00
// import EventSearchIndexer from './event-search-indexer'
import SearchIndexer from './search-indexer'
export function activate() {
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
// EventSearchIndexer.activate(indexer)
}
export function deactivate() {
ThreadSearchIndexStore.deactivate()
ContactSearchIndexer.deactivate()
2016-11-22 05:49:57 +08:00
// EventSearchIndexer.deactivate()
}