Extension:WSSemanticParsedText

From mediawiki.org
This page is a translated version of the page Extension:WSSemanticParsedText and the translation is 40% complete.
Outdated translations are marked like this.
MediaWiki 拡張機能マニュアル
WSSemanticParsedText
リリースの状態: ベータ
実装 フック
説明 This extension extends Semantic MediaWiki to provide full-text search with parsed wikitext.
作者 Wikibase Solutions
最新バージョン 2.1.1 (2023-05-11)
MediaWiki >= 1.31.0
データベースの変更 はい
Composer wikibase-solutions/w-s-semantic-parsed-text
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード

The WSSemanticParsedText extension extends Semantic MediaWiki to provide full-text search with parsed wikitext. This extension replaces the raw wikitext search with stripped parsed wikitext search.

The extension works by overriding the ElasticFactory used while indexing with an ElasticFactory that provides a new Indexer object that overrides the fetchNativeData function to return (stripped) parsed wikitext instead of raw wikitext.

インストール

This extension requires Semantic MediaWiki with ElasticStore configured.
  • ダウンロードして、ファイルをextensions/フォルダー内のWSSemanticParsedTextという名前のディレクトリ内に配置します。
  • Gitでのインストールの場合のみ、PHPの依存関係をインストールするためComposerを実行します。 (合併症の可能性についてはタスク T173141を参照。)
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'WSSemanticParsedText' );
    $smwgElasticsearchConfig["indexer"]["raw.text"] = true;
    
  • 更新スクリプトを実行します。このスクリプトは、この拡張機能が必要とするデータベーステーブルを自動的に作成します。
  • Run the following script from the root of your installation directory:
php extensions/SemanticMediaWiki/maintenance/rebuildElasticIndex.php
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。