Skip to content

Instantly share code, notes, and snippets.

@tomblench
Created September 19, 2014 14:56
Show Gist options
  • Save tomblench/c02bd6adcf37f1c9cfc7 to your computer and use it in GitHub Desktop.
Save tomblench/c02bd6adcf37f1c9cfc7 to your computer and use it in GitHub Desktop.
custom indexer
-(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