3 final class DivinerLiveSymbolFulltextEngine
4 extends PhabricatorFulltextEngine
{
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument
$document,
11 $book = $atom->getBook();
14 ->setDocumentTitle($atom->getTitle())
15 ->setDocumentCreated($book->getDateCreated())
16 ->setDocumentModified($book->getDateModified());
19 PhabricatorSearchDocumentFieldType
::FIELD_BODY
,
22 $document->addRelationship(
23 PhabricatorSearchRelationship
::RELATIONSHIP_BOOK
,
25 DivinerBookPHIDType
::TYPECONST
,
26 PhabricatorTime
::getNow());
28 $document->addRelationship(
29 PhabricatorSearchRelationship
::RELATIONSHIP_REPOSITORY
,
30 $atom->getRepositoryPHID(),
31 PhabricatorRepositoryRepositoryPHIDType
::TYPECONST
,
32 PhabricatorTime
::getNow());
34 $document->addRelationship(
36 ? PhabricatorSearchRelationship
::RELATIONSHIP_OPEN
37 : PhabricatorSearchRelationship
::RELATIONSHIP_CLOSED
,
39 DivinerBookPHIDType
::TYPECONST
,
40 PhabricatorTime
::getNow());