Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123295926
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, Jul 26, 08:34
Size
560 B
Mime Type
text/x-php
Expires
Mon, Jul 28, 08:34 (2 d)
Engine
blob
Format
Raw Data
Handle
27681258
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