Created
September 19, 2014 14:56
-
-
Save tomblench/c02bd6adcf37f1c9cfc7 to your computer and use it in GitHub Desktop.
custom indexer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(NSArray*)valuesForRevision:(CDTDocumentRevision*)revision | |
indexName:(NSString*)indexName | |
{ | |
NSMutableArray *returnArray = [NSMutableArray array]; | |
NSArray *arr = [[revision body] valueForKey:@"subjects"]; | |
for (NSDictionary *dict in arr) { | |
[returnArray addObject:[dict valueForKey:@"mark"]]; | |
} | |
return arr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment