Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / ponder / search / PonderQuestionFulltextEngine.php
blob6312d265d1e30da6bddcfef818601a78138820b6
1 <?php
3 final class PonderQuestionFulltextEngine
4 extends PhabricatorFulltextEngine {
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument $document,
8 $object) {
10 $question = $object;
12 $document->setDocumentTitle($question->getTitle());
14 $document->addField(
15 PhabricatorSearchDocumentFieldType::FIELD_BODY,
16 $question->getContent());
18 $document->addRelationship(
19 PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
20 $question->getAuthorPHID(),
21 PhabricatorPeopleUserPHIDType::TYPECONST,
22 $question->getDateCreated());