Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102008773
DivinerLiveSymbolFulltextEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 16, 03:30
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Feb 18, 03:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24244910
Attached To
rPH Phabricator
DivinerLiveSymbolFulltextEngine.php
View Options
<?php
final
class
DivinerLiveSymbolFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$atom
=
$object
;
$book
=
$atom
->
getBook
();
$document
->
setDocumentTitle
(
$atom
->
getTitle
())
->
setDocumentCreated
(
$book
->
getDateCreated
())
->
setDocumentModified
(
$book
->
getDateModified
());
$document
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$atom
->
getSummary
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_BOOK
,
$atom
->
getBookPHID
(),
DivinerBookPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_REPOSITORY
,
$atom
->
getRepositoryPHID
(),
PhabricatorRepositoryRepositoryPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
$document
->
addRelationship
(
$atom
->
getGraphHash
()
?
PhabricatorSearchRelationship
::
RELATIONSHIP_CLOSED
:
PhabricatorSearchRelationship
::
RELATIONSHIP_OPEN
,
$atom
->
getBookPHID
(),
DivinerBookPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
}
}
Event Timeline
Log In to Comment