wikitech.wikimedia.org
Wikitech
Help:CirrusSearch elasticsearch replicas
Revision as of 12:38, 17 May 2019 by Ebernhardson (talk | contribs) (Created page with "Cloud Elastic is a replica of the CirrusSearch elasticsearch indices made available to WMF cloud applications. Applications can use the full powe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Cloud Elastic is a replica of the CirrusSearch elasticsearch indices made available to WMF cloud applications. Applications can use the full power of the elasticsearch search API's to query the search indices in ways that CirrusSearch doesn't expose directly on the wiki's themselves.
Accessing
There are actually three clusters, named chi, psi and omega. chi contains approximately the 200 largest wikis. psi and omega contain equal splits of the remaining smaller wikis.
NameURL
chihttps://cloudelastic1001.wikimedia.org:8243/
psihttps://cloudelastic1001.wikimedia.org:8643/
omegahttps://cloudelastic1001.wikimedia.org:8443/
Clusters can be accessed through each other using the elasticsearch cross cluster search syntax. For example labswiki, which lives on the omega cluster, can be queried through the chi cluster with:
curl -XGET https://cloudelastic1001.wikimedia.org:8243/omega:labswiki/_search?q=example
Indices Available
All wikis have two indices, of the format <dbname>_content and <dbname>_general. The content index contains all of the content namespaces of the wiki, the general index contains everything else. So for example on wikipedia's articles are found in the content index, and talk pages are found in the general index. Querying both indices can be done by providing only the wiki db name.
Example Use Cases
Query all wikis
curl -XGET https://cloudelastic1001.wikimedia.org:8243/*,*:*/_search?q=example
View edit history of this page.
Wikitech
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
HomeRandomLog in Settings DonateAbout WikitechDisclaimers
WatchEdit