<?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="http://www.nnx.me/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 term seperated by white space </para><itemizedlist><listitem><para>Terms are combined by default with an AND operation - 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) </para></listitem></itemizedlist></listitem><listitem><para><code>-</code> before a search term means NOT. Pages containing this term are 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:CAT</code> searches for pages belonging to CategoryCAT; replaces old regular expression </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="15" fileref="http://www.nnx.me//moin_static197/ninuxtheme02/img/alert.png" width="15"/></imageobject><textobject><phrase>/!\</phrase></textobject></inlinemediaobject> Currently only available with Xapian!  <emphasis>Does this comment apply to item above or below??</emphasis> </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 deisel or gas</code> will find any page containing both &quot;car&quot; and &quot;deisel&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, and do not mean &quot;exactly this phrase&quot;. </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:homepage title:thomas]]></screen><para> search for pages in <ulink url="http://www.nnx.me/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 virtually added to every search term </para></listitem></itemizedlist></section><section><title>Xapian</title><para>See <ulink url="http://www.nnx.me/HelpOnSearching/HelpOnXapian#">HelpOnXapian</ulink> for more information on Xapian and its setup. </para></section></section></article>