Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / phame / search / PhameBlogFulltextEngine.php
blobc25550c655ceb1be256f56a20ee768401030f41c
1 <?php
3 final class PhameBlogFulltextEngine
4 extends PhabricatorFulltextEngine {
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument $document,
8 $object) {
10 $blog = $object;
12 $document->setDocumentTitle($blog->getName());
14 $document->addField(
15 PhabricatorSearchDocumentFieldType::FIELD_BODY,
16 $blog->getDescription());
18 $document->addRelationship(
19 $blog->isArchived()
20 ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
21 : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
22 $blog->getPHID(),
23 PhabricatorPhameBlogPHIDType::TYPECONST,
24 PhabricatorTime::getNow());