Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/search/PonderSearchIndexer.php
Show All 31 Lines | protected function buildAbstractDocumentByPHID($phid) { | ||||
foreach ($answers as $answer) { | foreach ($answers as $answer) { | ||||
if (strlen($answer->getContent())) { | if (strlen($answer->getContent())) { | ||||
$doc->addField( | $doc->addField( | ||||
PhabricatorSearchDocumentFieldType::FIELD_COMMENT, | PhabricatorSearchDocumentFieldType::FIELD_COMMENT, | ||||
$answer->getContent()); | $answer->getContent()); | ||||
} | } | ||||
} | } | ||||
$this->indexTransactions( | |||||
$doc, | |||||
new PonderQuestionTransactionQuery(), | |||||
array($phid)); | |||||
$this->indexTransactions( | |||||
$doc, | |||||
new PonderAnswerTransactionQuery(), | |||||
mpull($answers, 'getPHID')); | |||||
return $doc; | return $doc; | ||||
} | } | ||||
} | } |