Extension:WSSemanticParsedText/de

From Linux Web Expert

Revision as of 21:40, 5 April 2024 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki-Erweiterungen
WSSemanticParsedText
Freigabestatus: Beta
Einbindung Hook
Beschreibung This extension extends Semantic MediaWiki to provide full-text search with parsed wikitext.
Autor(en) Wikibase Solutions
Letzte Version 2.1.1 (2023-05-11)
MediaWiki
Datenbankänderungen Ja
Lizenz GNU General Public License 2.0 oder neuer
Herunterladen

GitLab:

<translate> Note:</translate>
<translate> No [[<tvar name=1>Special:MyLanguage/Localisation#Translation resources</tvar>|localisation]] updates are
provided by <tvar name=twn>translatewiki.net </tvar>.</translate>

Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

The WSSemanticParsedText extension extends Erweiterung: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.

Installation

This extension requires Semantic MediaWiki with ElasticStore configured.
  • <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>WSSemanticParsedText/de</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Only when installing from Git, run <tvar name=composer>Composer</tvar> to install PHP dependencies, by issuing <tvar name=code>composer install --no-dev</tvar> in the extension directory.</translate> <translate> (See <tvar name=phab><translate> task <tvar name=1>T173141</tvar></translate></tvar> for potential complications.)</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'WSSemanticParsedText/de' );
    $smwgElasticsearchConfig["indexer"]["raw.text"] = true;
    
  • <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
  • Run the following script from the root of your installation directory:
php extensions/SemanticMediaWiki/maintenance/rebuildElasticIndex.php