@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhameBlogFulltextEngine
4 extends PhabricatorFulltextEngine {
5
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument $document,
8 $object) {
9
10 $blog = $object;
11
12 $document->setDocumentTitle($blog->getName());
13
14 $document->addField(
15 PhabricatorSearchDocumentFieldType::FIELD_BODY,
16 $blog->getDescription());
17
18 $document->addRelationship(
19 $blog->isArchived()
20 ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
21 : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
22 $blog->getPHID(),
23 PhabricatorPhameBlogPHIDType::TYPECONST,
24 PhabricatorTime::getNow());
25
26 }
27
28}