Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110032988
20130912.maniphest.4.fillindex.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, Apr 24, 10:34
Size
720 B
Mime Type
text/x-php
Expires
Sat, Apr 26, 10:34 (2 d)
Engine
blob
Format
Raw Data
Handle
25779324
Attached To
rPH Phabricator
20130912.maniphest.4.fillindex.php
View Options
<?php
// Update the "PROJ" search index, to:
//
// - Populate the index itself, which was added recently.
// - Populate the secondary object name index in Maniphest.
$root
=
dirname
(
phutil_get_library_root
(
'phabricator'
));
$command
=
new
PhutilExecPassthru
(
'php -f %s -- index --type PROJ'
,
$root
.
'/scripts/search/manage_search.php'
);
$err
=
$command
->
execute
();
if
(
$err
)
{
// NOTE: Just ignore this. The indexing script fails if there are no projects
// yet, and even if it actually fails with something terrible and explosive
// it isn't very concerning. The worst case here is that "group by projects"
// doesn't work perfectly in Maniphest, and re-running the script later on
// can fix it.
}
Event Timeline
Log In to Comment