3 final class PhamePostFulltextEngine
4 extends PhabricatorFulltextEngine
{
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument
$document,
12 $document->setDocumentTitle($post->getTitle());
15 PhabricatorSearchDocumentFieldType
::FIELD_BODY
,
18 $document->addRelationship(
19 PhabricatorSearchRelationship
::RELATIONSHIP_AUTHOR
,
20 $post->getBloggerPHID(),
21 PhabricatorPeopleUserPHIDType
::TYPECONST
,
22 $post->getDateCreated());
24 $document->addRelationship(
26 ? PhabricatorSearchRelationship
::RELATIONSHIP_CLOSED
27 : PhabricatorSearchRelationship
::RELATIONSHIP_OPEN
,
29 PhabricatorPhamePostPHIDType
::TYPECONST
,
30 PhabricatorTime
::getNow());