Page MenuHomePhorge

DivinerBookSearchIndexer.php
No OneTemporary

Size
699 B
Referenced Files
None
Subscribers
None

DivinerBookSearchIndexer.php

<?php
final class DivinerBookSearchIndexer extends PhabricatorSearchDocumentIndexer {
public function getIndexableObject() {
return new DivinerLiveBook();
}
protected function buildAbstractDocumentByPHID($phid) {
$book = $this->loadDocumentByPHID($phid);
$doc = $this->newDocument($phid)
->setDocumentTitle($book->getTitle())
->setDocumentCreated($book->getDateCreated())
->setDocumentModified($book->getDateModified());
$doc->addField(
PhabricatorSearchDocumentFieldType::FIELD_BODY,
$book->getPreface());
$this->indexTransactions(
$doc,
new DivinerLiveBookTransactionQuery(),
array($phid));
return $doc;
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Sep 16, 5:25 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
446105
Default Alt Text
DivinerBookSearchIndexer.php (699 B)

Event Timeline