Elasticsearch: Difference between revisions

fix URIs
No edit summary
Line 19: Line 19:


=== Search Tips ===
=== Search Tips ===
This wiki supports Elasticsearch features.  So, for example, let's say you want to search for 'Ansible' in the wiki, but you know that there is an Ansible page, and you don't want to be taken directly to that page.  Instead, you prefer to actually see all the search results for 'Ansible'.  Just prefix your search term with the <code>~</code> character.  Now when you press enter, you'll go to the search results page with a full listing of results.
This wiki supports Elasticsearch features.  So, for example, let's say you want to search for 'Ansible' in the wiki, but you know that there is an Ansible page, and you don't want to be taken directly to that page.  Instead, you prefer to actually see all the [Special:Search search results for 'Ansible'].  Just prefix your search term with the <code>~</code> character.  Now when you press enter, you'll go to the search results page with a full listing of results.


Use the <code>morelike:</code> special prefix [https://wiki.freephile.org/w/api.php?action=query&list=search&srsearch=morelike:Elasticsearch morelike:Elasticsearch]
Use the <code>morelike:</code> special prefix [https://wiki.freephile.org/w/api.php?action=query&list=search&srsearch=morelike:Elasticsearch morelike:Elasticsearch]
Line 25: Line 25:


Use the <code>cirrusdump</code> action to see the document as ElasticSearch sees it [{{fullurl:{{PAGENAMEE}}
Use the <code>cirrusdump</code> action to see the document as ElasticSearch sees it [{{fullurl:{{PAGENAMEE}}
|action=cirrusdump}}]. This is especially useful to test whether (new) documents are being indexed.
|action=cirrusdump}}]. This is especially useful to test whether (new) documents are being indexed. Additional MediaWiki API methods like <code>cirrus-config-dump</code> are listed at [[mw:Extension:CirrusSearch#API]]


{{Messagebox
{{Messagebox