/** * Indexes a discussion on a document.. * * @param int $docid * @return boolean */ protected function indexDiscussion($docid) { try { $discussion = Indexer::getDiscussionText($docid); if (empty($discussion)) { return true; } return $this->lucene->updateDiscussion($docid, $discussion); } catch (Exception $e) { return false; } return true; }