You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Search.wikimedia.org: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Brion
No edit summary
 
imported>Krinkle
No edit summary
Line 1: Line 1:
This currently holds a web service running title prefix searches for Apple's Dictionary application in Mac OS X 10.5.
'''search.wikimedia.org''' holds a web service for running title prefix searches for Apple's Dictionary application in Mac OS X 10.5.


== Hardware ==
== Hardware ==
* [[yongle]]
* [[yongle]]


== Software ==
== Software ==
* Apache+PHP+json extension
* Apache+PHP+json extension
* [http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/apple-dictionary/index.php?view=log apple-dictionary front-end web service]
* [https://github.com/wikimedia/operations-mediawiki-config/blob/master/docroot/search.wikimedia.org/index.php docroot/search.wikimedia.org source code]
** This is a short PHP script which sends requests to our OpenSearch suggest web service and returns HTML-formatted results in the microformat that Apple's tool expects.
** This is a simple PHP script that sends requests to the OpenSearch API of the target wiki and returns HTML-formatted results in the microformat that Apple Dictionary expects.


== Usage ==
== Usage ==
* Production use began October 2007 with release of Mac OS X 10.5 Leopard
* Production use began October 2007 with release of Mac OS X 10.5 Leopard
* Switched to OpenSearch backend in January 2008 to resolve performance and updating issues
* Switched to OpenSearch backend in January 2008 to resolve performance and updating issues


== Notes ==
== Notes ==
* Apple's client sends all queries as lowercase, so this requires a case-insensitive OpenSearch suggest backend. Currently this is provided using the TitleKey extension to MediaWiki.
* Apple's client sends all queries as lowercase, so this requires a case-insensitive OpenSearch suggest backend. Currently this is provided using the TitleKey extension to MediaWiki.


== How to recover in a hurry ==
== How to recover in a hurry ==
# Set up an Apache+PHP box serving search.wikimedia.org
#* PHP's json extension required
# Install [https://github.com/wikimedia/operations-mediawiki-config/blob/master/docroot/search.wikimedia.org/index.php index.php] in the document root.


# set up an Apache+PHP box serving search.wikimedia.org
== External link ==
#* PHP's json extension required
* https://search.wikimedia.org
# install [http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/apple-dictionary/index.php?view=markup  apple-dictionary/index.php] in the document root


{{lowercase}}
[[Category:Services]]
[[Category:Services]]

Revision as of 07:04, 26 June 2015

search.wikimedia.org holds a web service for running title prefix searches for Apple's Dictionary application in Mac OS X 10.5.

Hardware

Software

  • Apache+PHP+json extension
  • docroot/search.wikimedia.org source code
    • This is a simple PHP script that sends requests to the OpenSearch API of the target wiki and returns HTML-formatted results in the microformat that Apple Dictionary expects.

Usage

  • Production use began October 2007 with release of Mac OS X 10.5 Leopard
  • Switched to OpenSearch backend in January 2008 to resolve performance and updating issues

Notes

  • Apple's client sends all queries as lowercase, so this requires a case-insensitive OpenSearch suggest backend. Currently this is provided using the TitleKey extension to MediaWiki.

How to recover in a hurry

  1. Set up an Apache+PHP box serving search.wikimedia.org
    • PHP's json extension required
  2. Install index.php in the document root.

External link