public function isIndexable(DocumentInterface $comment) { return $comment->getStatus() === 'approved'; }