 import UIKit
 import MobileCoreServices
 import CoreSpotlight
+import CocoaLumberjack
 
 @available(iOS 9.0, *)
 

    func removeFromIndex(title: MWKTitle) {
        CSSearchableIndex.defaultSearchableIndex().deleteSearchableItemsWithIdentifiers([title.mobileURL.absoluteString]) { (error: NSError?) -> Void in
            if let error = error {
                print("Deindexing error: \(error.localizedDescription)")
            } else {
                print("Search item successfully removed!")
            }
            
        }

            
            CSSearchableIndex.defaultSearchableIndex().indexSearchableItems([item]) { (error: NSError?) -> Void in
                if let error = error {
                    DDLogError("Indexing error: \(error.localizedDescription)")
                } else {
                    DDLogVerbose("Search item successfully indexed!")
                }
            }
        }
