Jump to content

Extension:WikibaseCirrusSearch

From mediawiki.org
This page is a translated version of the page Extension:WikibaseCirrusSearch and the translation is 20% complete.
MediaWiki 拡張機能マニュアル
WikibaseCirrusSearch
リリースの状態: 安定
実装 検索, API
説明 Implements searching for Wikibase using ElasticSearch
作者 Stas Malyshev
最新バージョン 0.0.1 (continuous updates)
互換性の方針 master は後方互換性を維持しています。
MediaWiki 1.33+
PHP 7.0+
Composer wikibase/cirrussearch
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
README
ヘルプ Help:Extension:WikibaseCirrusSearch/ja
  • $wgLanguageSelectorRescoreFunctionChains
  • $wgUseCirrus
  • $wgRescoreFunctionChains
  • $wgLanguageSelectorRescoreProfile
  • $wgLicenseMapping
  • $wgPrefixSearchProfile
  • $wgInLabelSearchProfile
  • $wgFulltextSearchProfiles
  • $wgPrefixSearchProfiles
  • $wgLanguageSelectorStatementBoost
  • $wgFulltextSearchProfile
  • $wgRescoreProfiles
  • $wgLanguageSelectorPrefixSearchProfile
  • $wgStatementBoost
  • $wgUseStemming
  • $wgDefaultFulltextRescoreProfile
  • $wgDefaultInLabelRescoreProfile
  • $wgInLabelSearchProfiles
  • $wgDefaultPrefixRescoreProfile
四半期ごとのダウンロード数 11 (Ranked 97th)
translatewiki.net で翻訳を利用できる場合は、WikibaseCirrusSearch 拡張機能の翻訳にご協力ください
Vagrant role wikibasecirrussearch
問題点 未解決のタスク · バグを報告

The WikibaseCirrusSearch extension provides ElasticSearch functionality, as supported by CirrusSearch extension, to Wikibase Repository extension.

Installation

  • This extension requires the following extensions to be installed first:
  • ダウンロードして、ファイルをextensions/フォルダー内のWikibaseCirrusSearchという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseCirrusSearch
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'WikibaseCirrusSearch' );
    
    Configure as required.
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

Configuration

The configuration options of WikibaseCirrusSearch are documented at the docs/config.wiki file.

Following configuration options are supported (all variables are prefixed with wgWBCS in globals):

Name Type Description Default
UseCirrus boolean|null whether we should use search functionality provided by this extension. If set to null, CirrusSearch is not used unless the request has useCirrus=1. Note: The default for this value is false, to enable search functionality it should be set to true in the configuration. false
PrefixSearchProfile name of the label scoring profile to use for prefix search. The profile should be defined like examples in config/EntityPrefixSearchProfiles.php.
PrefixSearchProfiles Loaded from config/EntityPrefixSearchProfiles.php, does not need to be defined manually.
DefaultPrefixRescoreProfile name of the rescoring profile to use for prefix search. The profile should be defined in config/ElasticSearchRescoreProfiles.php.
FulltextSearchProfile name of the search profile to use for fulltext search. The profile should be defined like examples in config/EntitySearchProfiles.php.
FulltextSearchProfiles search profiles to use for fulltext search.
DefaultFulltextRescoreProfile name of the rescoring profile to use for fulltext search. The profile should be defined in config/ElasticSearchRescoreProfiles.php.
RescoreProfiles Loaded from config/ElasticSearchRescoreProfiles.php, does not have to be defined manually.
StatementBoost Configuration to boost or deboost certain statement values.
UseStemming Configuration to use stemming analyzer for descriptions in certain languages. Array of two fields: index – use it for indexing, query – use main text field for querying.

関連項目