3 final class PhabricatorRepositoryFulltextEngine
4 extends PhabricatorFulltextEngine
{
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument
$document,
10 $document->setDocumentTitle($repo->getName());
12 PhabricatorSearchDocumentFieldType
::FIELD_BODY
,
13 $repo->getRepositorySlug()."\n".$repo->getDetail('description'));
15 $document->setDocumentCreated($repo->getDateCreated());
16 $document->setDocumentModified($repo->getDateModified());
18 $document->addRelationship(
20 ? PhabricatorSearchRelationship
::RELATIONSHIP_OPEN
21 : PhabricatorSearchRelationship
::RELATIONSHIP_CLOSED
,
23 PhabricatorRepositoryRepositoryPHIDType
::TYPECONST
,
24 PhabricatorTime
::getNow());