<?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>Queries</title><para>With the <ulink url="https://wiki.hcoop.net/HelpOnSearching/MoinMoin#">MoinMoin</ulink> search engine the same search patterns are allowed in the search and title search input fields as in the parameters for the <code>FullSearch</code>  <code>(FullSearchCached)</code> and the <code>PageList</code> macros. </para><itemizedlist><listitem><para>There may be several search terms separated by white space </para><itemizedlist><listitem><para>By default, terms are connected by conjunction - only pages containing all search term are returned </para></listitem><listitem><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></listitem></itemizedlist></listitem><listitem><para><code>-</code> before a search term inverts it, pages containing this term will be excluded from the result </para></listitem><listitem><para><code>regex:TERM</code> is 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></listitem><listitem><para><code>title:TERM</code> searches in pages whose titles match TERM </para><itemizedlist><listitem><para>Normal search terms do search the titles, too. Matches in titles get more weight than matches in pages. </para></listitem></itemizedlist></listitem><listitem><para><code>case:TERM</code> searches case sensitive </para></listitem><listitem><para><code>linkto:TERM</code> searches for links to TERM </para></listitem><listitem><para><code>language:LANG-ISO-CODE</code> searches for pages written in a given language ISO code, e.g. en, de </para></listitem><listitem><para><code>category:CategorySomething</code> searches for pages belonging to CategorySomething </para></listitem><listitem><para><code>mimetype:TYPE</code> searches for pages and attachments with mimetype TYPE, e.g. image/png </para><itemizedlist><listitem override="none"><para><inlinemediaobject><imageobject><imagedata depth="16" fileref="https://wiki.hcoop.net/moin_static1911/moniker_bt/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></listitem></itemizedlist></listitem><listitem><para><code>domain:TERM</code> searches for pages in a domain like underlay or system (for system pages) </para></listitem><listitem><para><code>title:</code>, <code>regex:</code>, <code>linkto:</code> and <code>case:</code> may be used in combination in one search term </para><itemizedlist><listitem><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></listitem><listitem><para>If you want to use multiple prefixes, you have to concatenate them like this: <code>t:re:TERM</code> </para></listitem><listitem><para><code>-</code> must be put before any other modifiers </para></listitem></itemizedlist></listitem><listitem><para><code>OR</code> 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></listitem><listitem><para>Parentheses can be used for grouping </para></listitem></itemizedlist><section><title>Examples</title><screen><![CDATA[title:Help macro]]></screen><para>searches for help pages that contain the word &quot;macro&quot;. </para><screen><![CDATA[apple (computer or "operating system")]]></screen><para>searches for pages containing the word &quot;apple&quot; and at least one of &quot;computer&quot; or &quot;operating system&quot;. </para><screen><![CDATA[windows winamp or linux xmms]]></screen><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><screen><![CDATA["is text"]]></screen><para>Will match &quot;th<emphasis role="strong">is text</emphasis>&quot; or &quot;<emphasis role="strong">is text</emphasis>s&quot;. Quotes are used only to include whitespace. </para><screen><![CDATA[linkto:WindowsPage title:Linux]]></screen><para> searches for pages that have &quot;Linux&quot; in the page name and that link to WindowsPage</para><screen><![CDATA[r:\bdog\b]]></screen><para> searches for the word &quot;dog&quot; and does <emphasis>not</emphasis> find e.g. the word &quot;doggy&quot;.</para><screen><![CDATA[help -domain:system]]></screen><para> search for pages containing the word &quot;help&quot; but which are not system pages</para><screen><![CDATA[category:CategoryHomepage title:thomas]]></screen><para> search for pages in <ulink url="https://wiki.hcoop.net/HelpOnSearching/CategoryHomepage#">CategoryHomepage</ulink> with the word &quot;thomas&quot; in the title (user homepages of all persons named Thomas)</para></section><section><title>TitleSearch and PageList</title><itemizedlist><listitem><para>uses the same patterns </para></listitem><listitem><para><code>title:</code> is implicitly added to every search term </para></listitem></itemizedlist></section><section><title>Xapian</title><para>See <ulink url="https://wiki.hcoop.net/HelpOnSearching/HelpOnXapian#">HelpOnXapian</ulink> for more information on Xapian and its setup. </para></section></section></article>