PageRenderTime 73ms CodeModel.GetById 25ms app.highlight 34ms RepoModel.GetById 1ms app.codeStats 0ms

/shabti/templates/moinmoin/data/moin/underlay/pages/HelpOnSearching/revisions/00000001

https://bitbucket.org/gawel/shabti
#! | 78 lines | 63 code | 15 blank | 0 comment | 0 complexity | f0fcc0c05f1830ef0abebf284844dd60 MD5 | raw file
 1## Please edit system and help pages ONLY in the master wiki!
 2## For more information, please see MoinMoin:MoinDev/Translation.
 3##master-page:Unknown-Page
 4##master-date:Unknown-Date
 5#acl -All:write Default
 6#format wiki
 7#language en
 8
 9= Queries =
10
11With the MoinMoin search engine the same search patterns are allowed in the search and title search input fields as in the parameters for the {{{FullSearch}}}  {{{(FullSearchCached)}}} and the {{{PageList}}} macros.
12
13 * There may be several search terms separated by white space
14  * By default, terms are connected by conjunction - only pages containing all search term are returned
15  * 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
16 * `-` before a search term inverts it, pages containing this term will be excluded from the result
17 * `regex:TERM` is treated as a regular expression.  !MoinMoin follows Python regex rules (see [[http://docs.python.org/lib/re-syntax.html]] for more info)
18 * `title:TERM` searches in pages whose titles match TERM
19  * Normal search terms do search the titles, too. Matches in titles get more weight than matches in pages.
20 * {{{case:TERM}}} searches case sensitive
21 * {{{linkto:TERM}}} searches for links to TERM
22 * {{{language:LANG-ISO-CODE}}} searches for pages written in a given language ISO code, e.g. en, de
23 * {{{category:CategorySomething}}} searches for pages belonging to Category``Something
24 * {{{mimetype:TYPE}}} searches for pages and attachments with mimetype TYPE, e.g. image/png
25  /!\ {{{mimetype:}}} search has limited support for the builtin search (only pages have a mimetype - `text/<format>`)
26 * {{{domain:TERM}}} searches for pages in a domain like underlay or system (for system pages)
27 * {{{title:}}}, {{{regex:}}}, {{{linkto:}}} and {{{case:}}} may be used in combination in one search term
28  * these modifiers may be abbreviated to any length: e.g. {{{re:}}}, {{{t:}}}, {{{reg:}}}, {{{cas:}}}, {{{l:}}}
29  * If you want to use multiple prefixes, you have to concatenate them like this: `t:re:TERM`
30  * `-` must be put before any other modifiers
31 * `OR` operator has a lower precedence than the implicit AND (e.g., `car diesel or gas` will find any page containing both "car" and "diesel", but will also hit on pages containing "gas", even if "car" is not on the page.)
32 * Parentheses can be used for grouping
33
34== Examples ==
35
36{{{
37title:Help macro
38}}}
39searches for help pages that contain the word "macro".
40
41{{{
42apple (computer or "operating system")
43}}}
44searches for pages containing the word "apple" and at least one of "computer" or "operating system".
45
46{{{
47windows winamp or linux xmms
48}}}
49searches for pages containing both "windows" and "winamp", and also for pages containing both "linux" and "xmms".
50
51{{{
52"is text"
53}}}
54Will match "th'''is text'''" or "'''is text'''s". Quotes are used only to include whitespace.
55
56{{{
57linkto:WindowsPage title:Linux
58}}} searches for pages that have "Linux" in the page name and that link to !WindowsPage
59
60{{{
61r:\bdog\b
62}}} searches for the word "dog" and does ''not'' find e.g. the word "doggy".
63
64{{{
65help -domain:system
66}}} search for pages containing the word "help" but which are not system pages
67
68{{{
69category:CategoryHomepage title:thomas
70}}} search for pages in CategoryHomepage with the word "thomas" in the title (user homepages of all persons named Thomas)
71
72== TitleSearch and PageList ==
73 * uses the same patterns
74 * {{{title:}}} is implicitly added to every search term
75
76== Xapian ==
77
78See HelpOnXapian for more information on Xapian and its setup.