MediaWiki-Docker/Extension/MediaSearch

Requirements

 * 1) Docker
 * 2) Docker Compose
 * 3) A gerrit account and properly configured git

Instructions
To enable local search/autocomplete suggestions, you will need a working WikibaseMediaInfo setup and a local Wikidata instance. These instructions will allow you to search content from Wikimedia Commons, with help from Wikidata.

From scratch

 * 1) Clone Mediawiki Core
 * 2) Create a new file called   in the root of the repository and copy the contents of this gist into it.
 * 3) Follow the instructions in DEVELOPERS.md under "Start environment and install MediaWiki" to get Docker running
 * 4) Create a new file called   in the root of the repository and copy the contents of this gist into it. Run   to make the file executable.
 * 5) Run   in the root of the repository. This will take a little while.
 * 6) Visit http://localhost:8080/w/index.php?title=Special:NewMediaSearch and start searching production Commons content. Production Wikidata will be used for autocomplete suggestions. This is enabled by the   config variable in.

Add to an existing Docker setup

 * 1) Clone the MediaSearch extension into your   directory. You will also need CirrusSearch and Elastica.
 * 2) Install composer dependencies
 * 3) Add the following to your   file:
 * 4) Visit http://localhost:8080/w/index.php?title=Special:NewMediaSearch and start searching production Commons content. Production Wikidata will be used for autocomplete suggestions. This is enabled by the   config variable
 * 1) Visit http://localhost:8080/w/index.php?title=Special:NewMediaSearch and start searching production Commons content. Production Wikidata will be used for autocomplete suggestions. This is enabled by the   config variable