             return
         }
         
-        let searchableItemAttributes = article.searchableItemAttributes()
-        searchableItemAttributes.keywords?.append("Saved")
-        
-        let item = CSSearchableItem(uniqueIdentifier: identifier, domainIdentifier: "org.wikimedia.wikipedia", attributeSet: searchableItemAttributes)
-        item.expirationDate = NSDate.distantFuture
-        
-        CSSearchableIndex.default().indexSearchableItems([item]) { (error) -> Void in
-            if let error = error {
-                DDLogError("Indexing error: \(error.localizedDescription)")
+        queue.async {
+            let searchableItemAttributes = article.searchableItemAttributes()
+            searchableItemAttributes.keywords?.append("Saved")
+            
+            let item = CSSearchableItem(uniqueIdentifier: identifier, domainIdentifier: "org.wikimedia.wikipedia", attributeSet: searchableItemAttributes)
+            item.expirationDate = NSDate.distantFuture
+            
+            CSSearchableIndex.default().indexSearchableItems([item]) { (error) -> Void in
+                if let error = error {
+                    DDLogError("Indexing error: \(error.localizedDescription)")
+                }
             }
         }
     }

@available(iOS 9.0, *)

public class WMFSavedPageSpotlightManager: NSObject {
    
    let dataStore: MWKDataStore
    @objc var savedPageList: MWKSavedPageList {
        return dataStore.savedPageList
    }

        guard let identifier = NSURL.wmf_desktopURL(for: url as URL)?.absoluteString else {
            return
        }
        
        queue.async {
            CSSearchableIndex.default().deleteSearchableItems(withIdentifiers: [identifier]) { (error) in
                if let error = error {
                    DDLogError("Deindexing error: \(error.localizedDescription)")
                }
            }
        }

    }

}
