Changed $doc->id to $doc->docid to prevent clashes with Zend Search's internal