Extension:WSSemanticParsedText/my

From Linux Web Expert

MediaWiki extensions manual
WSSemanticParsedText
Release status: beta
Implementation Hook
Description This extension extends Semantic MediaWiki to provide full-text search with parsed wikitext.
Author(s) Wikibase Solutions
Latest version 2.1.1 (2023-05-11)
MediaWiki
Database changes Yes
License GNU General Public License 2.0 or later
Download

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 က parsed wikitext နဲ့ full-text search ကို ပေးဖို့ Semantic MediaWiki ကို တိုးချဲ့ပေးတယ်။ 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/my</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/my' );
    $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