mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-23535] Add disable database search flag and return empty posts results if set (#14245)
* [MM-23535] Add disable database search flag and return empty posts results if set * Add UpdateConfig function for the SearchStore and hook it into the app lifecycle * Add the config listener in the server instance instead of using FakeApp * Instantiate searchlayer as a pointer to avoid passing around copies of it
This commit is contained in:
committed by
GitHub
parent
288ed40e8f
commit
4fde004a5b
@@ -111,7 +111,7 @@ func (h *MainHelper) setupStore() {
|
||||
h.SQLSupplier = sqlstore.NewSqlSupplier(*h.Settings, nil)
|
||||
h.Store = searchlayer.NewSearchLayer(&TestStore{
|
||||
h.SQLSupplier,
|
||||
}, h.SearchEngine)
|
||||
}, h.SearchEngine, config)
|
||||
}
|
||||
|
||||
func (h *MainHelper) setupResources() {
|
||||
|
||||
Reference in New Issue
Block a user