@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 PonderQuestionFulltextEngine
4 extends PhabricatorFulltextEngine {
5
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument $document,
8 $object) {
9
10 $question = $object;
11
12 $document->setDocumentTitle($question->getTitle());
13
14 $document->addField(
15 PhabricatorSearchDocumentFieldType::FIELD_BODY,
16 $question->getContent());
17
18 $document->addRelationship(
19 PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
20 $question->getAuthorPHID(),
21 PhabricatorPeopleUserPHIDType::TYPECONST,
22 $question->getDateCreated());
23 }
24}