Extension:WSSemanticParsedText
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() Release status: unmaintained |
|
---|---|
Implementation | Hook |
Description | This extension extends Semantic MediaWiki to provide full-text search with parsed wikitext. |
Author(s) | |
Latest version | 2.1 |
MediaWiki | >= 1.31.0 |
Database changes | Yes |
License | GNU General Public License 2.0 or later |
Download | |
WSSemanticParsedText 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 has been tested with MediaWiki 1.31.x and 1.35.x.
InstallationEdit
This extension requires Semantic MediaWiki with ElasticStore configured.
- Download and place the file(s) in a directory called
WSSemanticParsedText
in yourextensions/
folder. - Only when installing from Git, run Composer to install PHP dependencies, by issuing
composer install --no-dev
in the extension directory. (See task T173141 for potential complications.) - Add the following code at the bottom of your
LocalSettings.php
:wfLoadExtension( 'WSSemanticParsedText' ); $smwgElasticsearchConfig["indexer"]["raw.text"] = true;
- Run the update script which will automatically create the necessary database tables that this extension needs.Run the following script from the root of your installation directory:
php extensions/SemanticMediaWiki/maintenance/rebuildElasticIndex.php
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.