Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / diviner / search / DivinerLiveBookFulltextEngine.php
blob35ff454d53cb233095c1271dca489e2b4b743cf8
1 <?php
3 final class DivinerLiveBookFulltextEngine
4 extends PhabricatorFulltextEngine {
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument $document,
8 $object) {
10 $book = $object;
12 $document->setDocumentTitle($book->getTitle());
14 $document->addField(
15 PhabricatorSearchDocumentFieldType::FIELD_BODY,
16 $book->getPreface());
18 $document->addRelationship(
19 PhabricatorSearchRelationship::RELATIONSHIP_REPOSITORY,
20 $book->getRepositoryPHID(),
21 PhabricatorRepositoryRepositoryPHIDType::TYPECONST,
22 $book->getDateCreated());