mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-06-19 18:24:12 +08:00
Update Search project to reflect indexing API change
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
NSAssert(count != NSNotFound, @"Failed to import contacts at path '%@': %@", pathToDataFile, error);
|
||||
|
||||
// Index the imported objects
|
||||
[managedObjectStore.searchIndexer indexChangedObjectsInManagedObjectContext:importer.managedObjectContext];
|
||||
[managedObjectStore.searchIndexer indexChangedObjectsInManagedObjectContext:importer.managedObjectContext waitUntilFinished:YES];
|
||||
BOOL success = [importer finishImporting:&error];
|
||||
NSAssert(success, @"Failed to finish import operation: %@", error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user