Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F124178232
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
Thu, Jul 31, 19:37
Size
560 B
Mime Type
text/x-php
Expires
Sat, Aug 2, 19:37 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27812739
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