Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115410918
PhabricatorSearchDocumentIndexer.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
Sat, May 31, 19:51
Size
560 B
Mime Type
text/x-php
Expires
Mon, Jun 2, 19:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26457881
Attached To
rPH Phabricator
PhabricatorSearchDocumentIndexer.php
View Options
<?php
/**
* @group search
*/
abstract
class
PhabricatorSearchDocumentIndexer
{
// TODO: Make this whole class tree concrete?
final
protected
static
function
reindexAbstractDocument
(
PhabricatorSearchAbstractDocument
$document
)
{
$engine
=
PhabricatorSearchEngineSelector
::
newSelector
()->
newEngine
();
try
{
$engine
->
reindexAbstractDocument
(
$document
);
}
catch
(
Exception
$ex
)
{
$phid
=
$document
->
getPHID
();
$class
=
get_class
(
$engine
);
phlog
(
"Unable to index document {$phid} by engine {$class}."
);
}
}
}
Event Timeline
Log In to Comment