Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F568098
PhamePostFulltextEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
864 B
Referenced Files
None
Subscribers
None
PhamePostFulltextEngine.php
View Options
<?php
final
class
PhamePostFulltextEngine
extends
PhabricatorFulltextEngine
{
protected
function
buildAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
,
$object
)
{
$post
=
$object
;
$document
->
setDocumentTitle
(
$post
->
getTitle
());
$document
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_BODY
,
$post
->
getBody
());
$document
->
addRelationship
(
PhabricatorSearchRelationship
::
RELATIONSHIP_AUTHOR
,
$post
->
getBloggerPHID
(),
PhabricatorPeopleUserPHIDType
::
TYPECONST
,
$post
->
getDateCreated
());
$document
->
addRelationship
(
$post
->
isArchived
()
?
PhabricatorSearchRelationship
::
RELATIONSHIP_CLOSED
:
PhabricatorSearchRelationship
::
RELATIONSHIP_OPEN
,
$post
->
getPHID
(),
PhabricatorPhamePostPHIDType
::
TYPECONST
,
PhabricatorTime
::
getNow
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 1:14 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
98283
Default Alt Text
PhamePostFulltextEngine.php (864 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment