Page MenuHomePhabricator

Unindexed pages

Authored By
Reedy
Dec 28 2018, 2:54 AM
Size
517 B
Referenced Files
None
Subscribers
None

Unindexed pages

$config = MediaWikiServices::getInstance()->getConfigFactory()->makeConfig( 'CirrusSearch' );
$conn = new Connection( $config );
$searcher = new Searcher( $conn, 0, 0, $config, [], $wgUser );
$db = wfGetDB( DB_REPLICA );
$titles = $db->selectFieldValues( 'page', 'page_title' );
foreach ( $titles as $text ) {
$title = Title::newFromDBkey( $text );
$docId = $config->makeId( $title->getArticleID() );
$esSources = $searcher->get( [ $docId ], true );
if ( !$esSources->isOK() ) {
echo $title->getText();
}
}

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6892172
Default Alt Text
Unindexed pages (517 B)

Event Timeline