Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/search/DivinerAtomSearchIndexer.php
| Show All 21 Lines | protected function buildAbstractDocumentByPHID($phid) { | ||||
| $doc->addField( | $doc->addField( | ||||
| PhabricatorSearchDocumentFieldType::FIELD_BODY, | PhabricatorSearchDocumentFieldType::FIELD_BODY, | ||||
| $atom->getSummary()); | $atom->getSummary()); | ||||
| $doc->addRelationship( | $doc->addRelationship( | ||||
| PhabricatorSearchRelationship::RELATIONSHIP_BOOK, | PhabricatorSearchRelationship::RELATIONSHIP_BOOK, | ||||
| $atom->getBookPHID(), | $atom->getBookPHID(), | ||||
| DivinerBookPHIDType::TYPECONST, | DivinerBookPHIDType::TYPECONST, | ||||
| $book->getDateCreated()); | PhabricatorTime::getNow()); | ||||
| $doc->addRelationship( | |||||
| $atom->getGraphHash() | |||||
| ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | |||||
| : PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | |||||
| $atom->getBookPHID(), | |||||
| DivinerBookPHIDType::TYPECONST, | |||||
| PhabricatorTime::getNow()); | |||||
joshuaspence: Technically I think this is meant to be `PhabricatorTime::getNow()`? | |||||
| return $doc; | return $doc; | ||||
| } | } | ||||
| } | } | ||||
Technically I think this is meant to be PhabricatorTime::getNow()?