Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/search/DivinerBookSearchIndexer.php
| Show All 12 Lines | $doc = $this->newDocument($phid) | ||||
| ->setDocumentTitle($book->getTitle()) | ->setDocumentTitle($book->getTitle()) | ||||
| ->setDocumentCreated($book->getDateCreated()) | ->setDocumentCreated($book->getDateCreated()) | ||||
| ->setDocumentModified($book->getDateModified()); | ->setDocumentModified($book->getDateModified()); | ||||
| $doc->addField( | $doc->addField( | ||||
| PhabricatorSearchDocumentFieldType::FIELD_BODY, | PhabricatorSearchDocumentFieldType::FIELD_BODY, | ||||
| $book->getPreface()); | $book->getPreface()); | ||||
| $this->indexTransactions( | |||||
| $doc, | |||||
| new DivinerLiveBookTransactionQuery(), | |||||
| array($phid)); | |||||
epriestley: (I //think// this is automatic if you implement ApplicationTransactionInterface?) | |||||
Not Done Inline ActionsI think that it should be, but it doesn't seem to be. joshuaspence: I think that it should be, but it doesn't seem to be. | |||||
| return $doc; | return $doc; | ||||
| } | } | ||||
| } | } | ||||
(I think this is automatic if you implement ApplicationTransactionInterface?)