         assert(client is OfflineClient);
         super.init(client: client, indexName: indexName)
     }
+    
+    // ----------------------------------------------------------------------
+    // Sync
+    // ----------------------------------------------------------------------
 
     /// Add a data selection query to the local mirror.
     /// The query is not run immediately. It will be run during the subsequent refreshes.

        }
    }
    
    private func _searchMirror(query: Query, block: CompletionHandler) {
        assert(!NSThread.isMainThread()) // make sure it's run in the background
        assert(self.mirrored, "Mirroring not activated on this index")


    
    /// Search the local mirror.
    public func searchMirror(query: Query, block: CompletionHandler) {
        let callingQueue = NSOperationQueue.currentQueue() ?? NSOperationQueue.mainQueue()
        self.offlineClient.searchQueue.addOperationWithBlock() {
