Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/search/DivinerLiveSymbolFulltextEngine.php
Show All 27 Lines | protected function buildAbstractDocument( | ||||
$document->addRelationship( | $document->addRelationship( | ||||
PhabricatorSearchRelationship::RELATIONSHIP_REPOSITORY, | PhabricatorSearchRelationship::RELATIONSHIP_REPOSITORY, | ||||
$atom->getRepositoryPHID(), | $atom->getRepositoryPHID(), | ||||
PhabricatorRepositoryRepositoryPHIDType::TYPECONST, | PhabricatorRepositoryRepositoryPHIDType::TYPECONST, | ||||
PhabricatorTime::getNow()); | PhabricatorTime::getNow()); | ||||
$document->addRelationship( | $document->addRelationship( | ||||
$atom->getGraphHash() | $atom->getGraphHash() | ||||
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | ? PhabricatorSearchRelationship::RELATIONSHIP_OPEN | ||||
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | : PhabricatorSearchRelationship::RELATIONSHIP_CLOSED, | ||||
$atom->getBookPHID(), | $atom->getBookPHID(), | ||||
DivinerBookPHIDType::TYPECONST, | DivinerBookPHIDType::TYPECONST, | ||||
PhabricatorTime::getNow()); | PhabricatorTime::getNow()); | ||||
} | } | ||||
} | } |