Page MenuHomePhorge

PonderQuestionFulltextEngine.php
No OneTemporary

Size
605 B
Referenced Files
None
Subscribers
None

PonderQuestionFulltextEngine.php

<?php
final class PonderQuestionFulltextEngine
extends PhabricatorFulltextEngine {
protected function buildAbstractDocument(
PhabricatorSearchAbstractDocument $document,
$object) {
$question = $object;
$document->setDocumentTitle($question->getTitle());
$document->addField(
PhabricatorSearchDocumentFieldType::FIELD_BODY,
$question->getContent());
$document->addRelationship(
PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
$question->getAuthorPHID(),
PhabricatorPeopleUserPHIDType::TYPECONST,
$question->getDateCreated());
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, May 13, 1:32 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
100932
Default Alt Text
PonderQuestionFulltextEngine.php (605 B)

Event Timeline