%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/wiki.varak.net/extensions/CirrusSearch/tests/relforge/
Upload File :
Create Path :
Current File : /www/varak.net/wiki.varak.net/extensions/CirrusSearch/tests/relforge/RelForgeSettings.php

<?php
/**
 * Settings for relforge wikis (wmf wikis)
 * Must be included from /vagrant/settings.d/00-Relforge.php
 * after habing set $wgCirrusSearchRelforgeProfile
 */

// Load it now so it won't override our settings
require_once ( __DIR__ . "/../jenkins/Jenkins.php" );

// pop score is global
$wgHooks['CirrusSearchMappingConfig'][] = function( array &$config, $mappingConfigBuilder ) {
        $config['page']['properties']['popularity_score'] = [
                'type' => 'double',
        ];
};

// No need for replicas in relforge
$wgCirrusSearchReplicas = '0-0';
// Allow more than one shard per node
$wgCirrusSearchMaxShardsPerNode = array( 'content' => -1, 'general' => -1, 'titlesuggest' => -1 );
$wgCirrusSearchRefreshInterval = 30;

// We don't use DFS in prod
$wgCirrusSearchMoreAccurateScoringMode = false;


// Specific settings
if ( file_exists( __DIR__ . "/$wgCirrusSearchRelforgeProfile/misc.inc" ) ) {
	require_once( __DIR__ . "/$wgCirrusSearchRelforgeProfile/misc.inc" );
}
if ( file_exists( __DIR__ . "/$wgCirrusSearchRelforgeProfile/similarity.inc" ) ) {
	require_once( __DIR__ . "/$wgCirrusSearchRelforgeProfile/similarity.inc" );
	$wgCirrusSearchSimilarityProfile = 'relforge';
}
if ( file_exists( __DIR__ . "/$wgCirrusSearchRelforgeProfile/ftbuilder.inc" ) ) {
	require_once( __DIR__ . "/$wgCirrusSearchRelforgeProfile/ftbuilder.inc" );
	$wgCirrusSearchFullTextQueryBuilderProfile = 'relforge';
}
if ( file_exists( __DIR__ . "/$wgCirrusSearchRelforgeProfile/rescore.inc" ) ) {
	require_once( __DIR__ . "/$wgCirrusSearchRelforgeProfile/rescore.inc" );
	$wgCirrusSearchRescoreProfile = 'relforge';
}

if ( file_exists( __DIR__ . "/$wgCirrusSearchRelforgeProfile/templates.inc" ) ) {
	require_once( __DIR__ . "/$wgCirrusSearchRelforgeProfile/templates.inc" );
}

Zerion Mini Shell 1.0