<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>HelpOnSearching</title></articleinfo><section><title>Search Queries</title><para>The <ulink url="https://wiki.math.uzh.ch/public/HelpOnSearching/public/MoinMoin#">MoinMoin</ulink> search engine is capable of using regex and other operators in the search input fields. </para><para>Additionally, the same search patterns are allowed as parameters in various search macros, such as for the <code>FullSearch</code>, <code>TitleSearch</code>, <code>FullSearchCached</code>, and <code>PageList</code> macros (see also <ulink url="https://wiki.math.uzh.ch/public/HelpOnSearching/public/HelpOnMacros#">HelpOnMacros</ulink>). </para><informaltable><tgroup cols="2"><colspec colname="col_0" colwidth="25*"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="strong">Operator</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <emphasis role="strong">Description</emphasis>  </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> (space between keywords) </para></entry><entry colsep="1" rowsep="1"><para> Several search terms separated by white space. By default, terms are connected by conjunction - only pages containing all search term are returned. </para><para> Double or single quotes may be used to include white space within search terms (phrase search), to search for the quotes themselves either quote them in the other type of quote or double them within a quoted string. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>-TERM</code> </para></entry><entry colsep="1" rowsep="1"><para> a minus (-) before a search term will exclude any pages containing that term from the results. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>regex:TERM</code> </para></entry><entry colsep="1" rowsep="1"><para>  treated as a regular expression.  MoinMoin follows Python regex rules (see <ulink url="http://docs.python.org/lib/re-syntax.html"/> for more info) </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>title:TERM</code> </para></entry><entry colsep="1" rowsep="1"><para> searches in pages whose titles match TERM. </para><para> Normal search terms do search the titles, too. Matches in titles get more weight than matches in pages. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>case:TERM</code> </para></entry><entry colsep="1" rowsep="1"><para> searches case sensitive. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>linkto:TERM</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for links to TERM. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>language:LANG-ISO-CODE</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for pages written in a given language ISO code, e.g. en, de </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>category:CategorySomething</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for pages belonging to CategorySomething </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>mimetype:TYPE</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for pages and attachments with mimetype TYPE, e.g. image/png </para><para> <inlinemediaobject><imageobject><imagedata depth="16" fileref="https://wiki.math.uzh.ch/public/moin_static198/moniker/img/alert.png" width="16"/></imageobject><textobject><phrase>/!\</phrase></textobject></inlinemediaobject> <code>mimetype:</code> search has limited support for the builtin search (only pages have a mimetype - <code>text/&lt;format&gt;</code>) </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>domain:TERM</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for pages in a domain like underlay or system (for system pages) </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>no_highlight:TERM</code> </para></entry><entry colsep="1" rowsep="1"><para> suppresses highlighting of TERM on pages linked from search results. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>title:</code>, <code>regex:</code>, <code>linkto:</code> and <code>case:</code> </para></entry><entry colsep="1" rowsep="1"><para> May be used in combination in one search term. </para><para> These modifiers may be abbreviated to any length: e.g. <code>re:</code>, <code>t:</code>, <code>reg:</code>, <code>cas:</code>, <code>l:</code> </para><para> If you want to use multiple prefixes, you have to concatenate them like this: <code>t:re:TERM</code> </para><para> If used, the <code>-</code> must be put before any other modifiers </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>OR</code> </para></entry><entry colsep="1" rowsep="1"><para> operator has a lower precedence than the implicit AND (e.g., <code>car diesel or gas</code> will find any page containing both &quot;car&quot; and &quot;diesel&quot;, but will also hit on pages containing &quot;gas&quot;, even if &quot;car&quot; is not on the page.) </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>(</code> and <code>)</code> </para></entry><entry colsep="1" rowsep="1"><para> Parentheses can be used for grouping. </para></entry></row></tbody></tgroup></informaltable><section><title>Examples</title><informaltable><tgroup cols="2"><colspec colname="col_0" colwidth="25*"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="strong">Example</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <emphasis role="strong">Description</emphasis>  </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>title:Help macro</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for help pages that contain the word &quot;macro&quot;. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>apple (computer or &quot;operating system&quot;)</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for pages containing the word &quot;apple&quot; and at least one of &quot;computer&quot; or &quot;operating system&quot;.</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>windows winamp or linux xmms</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for pages containing both &quot;windows&quot; and &quot;winamp&quot;, and also for pages containing both &quot;linux&quot; and &quot;xmms&quot;. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>&quot;is text&quot;</code> </para></entry><entry colsep="1" rowsep="1"><para> Will match both &quot;th<emphasis role="strong">is text</emphasis>&quot; and &quot;<emphasis role="strong">is text</emphasis>s&quot;. Quotes are used only to include whitespace. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>linkto:WindowsPage title:Linux</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for pages that have &quot;Linux&quot; in the page name and that link to WindowsPage</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>r:\bdog\b</code> </para></entry><entry colsep="1" rowsep="1"><para> searches for the word &quot;dog&quot; and <emphasis>will not</emphasis> find the word &quot;doggy&quot;. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>help -domain:system</code> </para></entry><entry colsep="1" rowsep="1"><para> search for pages containing the word &quot;help&quot; but which are not system pages </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>category:CategoryHomepage title:thomas</code> </para></entry><entry colsep="1" rowsep="1"><para> search for pages in <ulink url="https://wiki.math.uzh.ch/public/HelpOnSearching/public/CategoryHomepage#">CategoryHomepage</ulink> with the word &quot;thomas&quot; in the title (user homepages of all persons named Thomas) </para></entry></row></tbody></tgroup></informaltable></section><section><title>Xapian</title><para>Xapian is an optional indexing search engine that indexes your wiki for much faster searching performance. </para><para>See <ulink url="https://wiki.math.uzh.ch/public/HelpOnSearching/public/HelpOnXapian#">HelpOnXapian</ulink> for more information on Xapian and its setup. </para></section></section></article>