/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. = Queries =
  9. With 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.
  10. * There may be several search terms separated by white space
  11. * By default, terms are connected by conjunction - only pages containing all search term are returned
  12. * 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
  13. * `-` before a search term inverts it, pages containing this term will be excluded from the result
  14. * `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)
  15. * `title:TERM` searches in pages whose titles match TERM
  16. * Normal search terms do search the titles, too. Matches in titles get more weight than matches in pages.
  17. * {{{case:TERM}}} searches case sensitive
  18. * {{{linkto:TERM}}} searches for links to TERM
  19. * {{{language:LANG-ISO-CODE}}} searches for pages written in a given language ISO code, e.g. en, de
  20. * {{{category:CategorySomething}}} searches for pages belonging to Category``Something
  21. * {{{mimetype:TYPE}}} searches for pages and attachments with mimetype TYPE, e.g. image/png
  22. /!\ {{{mimetype:}}} search has limited support for the builtin search (only pages have a mimetype - `text/<format>`)
  23. * {{{domain:TERM}}} searches for pages in a domain like underlay or system (for system pages)
  24. * {{{title:}}}, {{{regex:}}}, {{{linkto:}}} and {{{case:}}} may be used in combination in one search term
  25. * these modifiers may be abbreviated to any length: e.g. {{{re:}}}, {{{t:}}}, {{{reg:}}}, {{{cas:}}}, {{{l:}}}
  26. * If you want to use multiple prefixes, you have to concatenate them like this: `t:re:TERM`
  27. * `-` must be put before any other modifiers
  28. * `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.)
  29. * Parentheses can be used for grouping
  30. == Examples ==
  31. {{{
  32. title:Help macro
  33. }}}
  34. searches for help pages that contain the word "macro".
  35. {{{
  36. apple (computer or "operating system")
  37. }}}
  38. searches for pages containing the word "apple" and at least one of "computer" or "operating system".
  39. {{{
  40. windows winamp or linux xmms
  41. }}}
  42. searches for pages containing both "windows" and "winamp", and also for pages containing both "linux" and "xmms".
  43. {{{
  44. "is text"
  45. }}}
  46. Will match "th'''is text'''" or "'''is text'''s". Quotes are used only to include whitespace.
  47. {{{
  48. linkto:WindowsPage title:Linux
  49. }}} searches for pages that have "Linux" in the page name and that link to !WindowsPage
  50. {{{
  51. r:\bdog\b
  52. }}} searches for the word "dog" and does ''not'' find e.g. the word "doggy".
  53. {{{
  54. help -domain:system
  55. }}} search for pages containing the word "help" but which are not system pages
  56. {{{
  57. category:CategoryHomepage title:thomas
  58. }}} search for pages in CategoryHomepage with the word "thomas" in the title (user homepages of all persons named Thomas)
  59. == TitleSearch and PageList ==
  60. * uses the same patterns
  61. * {{{title:}}} is implicitly added to every search term
  62. == Xapian ==
  63. See HelpOnXapian for more information on Xapian and its setup.