mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
Add users blockchain data to the search index and provide it in search results. Updated webapi search and download.
This commit is contained in:
@@ -37,10 +37,11 @@ func Init(UserAgent string) (backend *Backend) {
|
||||
var err error
|
||||
|
||||
backend.GlobalBlockchainCache = initBlockchainCache(config.BlockchainGlobal, config.CacheMaxBlockSize, config.CacheMaxBlockCount, config.LimitTotalRecords)
|
||||
backend.SearchIndex, err = search.InitSearchIndexStore(config.SearchIndex)
|
||||
|
||||
if err != nil {
|
||||
if backend.SearchIndex, err = search.InitSearchIndexStore(config.SearchIndex); err != nil {
|
||||
Filters.LogError("Init", "search index '%s' init: %s", config.SearchIndex, err.Error())
|
||||
} else {
|
||||
backend.userBlockchainUpdateSearchIndex()
|
||||
}
|
||||
|
||||
return backend
|
||||
|
||||
Reference in New Issue
Block a user