mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
c6bdd2c56b
Summary: Build ngram indexs, adds search by name capability. Test Plan: Search for a dashboard by partial name, search for a panel by partial name. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D17090
21 lines
463 B
PHP
21 lines
463 B
PHP
<?php
|
|
|
|
$table_db = new PhabricatorDashboard();
|
|
|
|
foreach (new LiskMigrationIterator($table_db) as $dashboard) {
|
|
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
$dashboard->getPHID(),
|
|
array(
|
|
'force' => true,
|
|
));
|
|
}
|
|
|
|
$table_dbp = new PhabricatorDashboardPanel();
|
|
|
|
foreach (new LiskMigrationIterator($table_dbp) as $panel) {
|
|
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
$panel->getPHID(),
|
|
array(
|
|
'force' => true,
|
|
));
|
|
}
|