Skip to content

Commit

Permalink
Add flag to enable CirrusSearch prefixing for ids (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKostka authored Mar 20, 2024
1 parent 697045a commit bb6a463
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist-persist/wbstack/src/Settings/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,10 @@ function onSkinTemplateNavigationUniversal( SkinTemplate $skin, array &$links )
// prepends indices with database name
$wgCirrusSearchIndexBaseName = getenv( 'MW_CIRRUSSEARCH_INDEX_BASE_NAME' ) ?: $wgDBname;

if ( getenv( 'MW_CIRRUSSEARCH_PREFIX_IDS' ) === 'yes' ) {
$wgCirrusSearchPrefixIds = true;
}

$wgSearchType = 'CirrusSearch';
$wgCirrusSearchDefaultCluster = 'default';

Expand Down
4 changes: 4 additions & 0 deletions dist/wbstack/src/Settings/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,10 @@ function onSkinTemplateNavigationUniversal( SkinTemplate $skin, array &$links )
// prepends indices with database name
$wgCirrusSearchIndexBaseName = getenv( 'MW_CIRRUSSEARCH_INDEX_BASE_NAME' ) ?: $wgDBname;

if ( getenv( 'MW_CIRRUSSEARCH_PREFIX_IDS' ) === 'yes' ) {
$wgCirrusSearchPrefixIds = true;
}

$wgSearchType = 'CirrusSearch';
$wgCirrusSearchDefaultCluster = 'default';

Expand Down

0 comments on commit bb6a463

Please sign in to comment.