Extension:MathSearch

The MathSearch extension integrates the MathWeb Search engine to MediaWiki.

Prerequisites
This extension requires some proconfiguration effort. You should plan 15 to 20 minutes for the installation of the prerequisites.
 * Math Extension in LaTeXML mode see here
 * A local installation of the MathWeb Search daemon as described in here is recommended.

At the current stage of development only MySQL is supported as database type.

For some features Extension:Geshi is required.

Installation
If you have shell access to your server, you may do this to download the extension: cd extensions git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/MathSearch.git

Perform a database update to create the required tables: php maintenance/update.php this command has to be executed in /your/path/to/mediawiki.

Configuration parameters
$wgMWSUrl: The link to your (local) MathWeb Seach installation e.g. "http://localhost:8090";

Text search
Text search works best with CirrusSearch, but the default MySQL search works as well.

Indexing
In order to use the MathSearch capabilities you have to create indexes for the formulas in your wiki. At the moment updates are not supported. So you have to re-index every time the equations change. If you have frequent changes it might be good to install a cron-job.

Change to cd /your/path/to/mediawiki/extensions/MathSearch/maintenance run php UpdateMath.php run php CreateMathIndex.php ../mws/data/wiki --mwsns=mws:

This is the default (MWS_HARVEST_PATH="../data/wiki") path. If you have changed the path in /your/path/to/mediawiki/extensions/MathSearch/mws/config/mws_services.conf you have to specify another part

Installing MWS locally
Initialize the sub-module git submodule init git submodule updat Change to cd /your/path/to/mediawiki/extensions/MathSearch/msw/ run ./install.sh

Sometimes the rights for the install.sh files are wrong in that case run chmod +x install.sh