@@ -114,7 +114,7 @@ import Foundation
114114 }
115115
116116 /// The local index mirroring this remote index (lazy instantiated, only if mirroring is activated).
117- lazy var localIndex : ASLocalIndex = ASLocalIndex ( dataDir: self . offlineClient. rootDataDir, appID: self . client. appID, indexName: self . name)
117+ lazy var localIndex : LocalIndex = LocalIndex ( dataDir: self . offlineClient. rootDataDir, appID: self . client. appID, indexName: self . name)
118118
119119 /// The mirrored index settings.
120120 let mirrorSettings = MirrorSettings ( )
@@ -338,7 +338,7 @@ import Foundation
338338 // Task: build the index using the downloaded files.
339339 buildIndexOperation = BlockOperation ( ) {
340340 if self . syncError == nil {
341- let status = self . localIndex. build ( fromSettingsFile : self . settingsFilePath!, objectFiles: self . objectsFilePaths!, clearIndex: true )
341+ let status = self . localIndex. build ( settingsFile : self . settingsFilePath!, objectFiles: self . objectsFilePaths!, clearIndex: true , deletedObjectIDs : nil )
342342 if status != 200 {
343343 self . syncError = HTTPError ( statusCode: Int ( status) )
344344 } else {
@@ -670,7 +670,7 @@ import Foundation
670670 assert ( !Thread. isMainThread) // make sure it's run in the background
671671
672672 let searchResults = localIndex. search ( query. build ( ) )
673- return OfflineClient . parseSearchResults ( searchResults : searchResults)
673+ return OfflineClient . parseResponse ( searchResults)
674674 }
675675
676676 // MARK: Multiple queries
@@ -870,6 +870,6 @@ import Foundation
870870 assert ( !Thread. isMainThread) // make sure it's run in the background
871871
872872 let searchResults = localIndex. browse ( query. build ( ) )
873- return OfflineClient . parseSearchResults ( searchResults : searchResults)
873+ return OfflineClient . parseResponse ( searchResults)
874874 }
875875}
0 commit comments