]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/FindPage
new case-sensitive and regex search options
[SourceForge/phpwiki.git] / pgsrc / FindPage
1 Date: Wed, 26 Nov 2004 10:56:40 +0100
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.11pre)
3 X-Rcs-Id: $Id: FindPage,v 1.16 2004-11-26 18:35:18 rurban Exp $
4 Content-Type: application/x-phpwiki;
5   pagename=FindPage;
6   pgsrc_version="2 $Revision: 1.16 $";
7   flags=PAGE_LOCKED;
8   markup=2;
9   charset=iso-8859-1
10 Content-Transfer-Encoding: binary
11
12 Here are some good starting points for browsing.
13
14 * HowToUseWiki gives you the quick lowdown on Wiki markup.
15 * RecentChanges recorded automatically.
16 * MoreAboutMechanics of browsing and editing on this server.
17
18 Here's a title search. Try something like <tt>wiki or sandwich</tt>.
19
20 <?plugin WikiFormRich action=TitleSearch method=GET nobr=1 class=wikiaction
21   editbox[] name=s text=""
22   submit[]
23   checkbox[] name=case_exact
24   pulldown[] name=regex value="auto,none,glob,posix,pcre" ?>
25
26 Use the following for a full text search. This takes a few seconds.
27 The results will show all lines on a given page which contain a
28 match.
29
30 <?plugin WikiFormRich action=FullTextSearch method=GET nobr=1 class=wikiaction
31   editbox[] name=s text=""
32   submit[]
33   checkbox[] name=case_exact
34   pulldown[] name=regex value="auto,none,glob,posix,pcre" ?>
35
36 In a fuzzy pages search the titles of all pages are examined to find
37 those which are similarly spelled or similar sounding (english).
38
39 <?plugin-form FuzzyPages ?>
40
41 ------
42
43 ! Tips
44 Separate words with a space. All words have to match as substrings. %%%
45 Some glob-style wildcard characters are also supported. %%%
46 To exclude words from a title search or full text search, prepend a '-'. %%%
47 Use '^xx' or 'xx*' to match words starting with 'xx'. %%%
48 Use '~*xx' or 'xx$' to match words ending with 'xx'. %%%
49 Use '^word$' to match exact words. %%%
50 Use regex=auto and 're:' like 're:word.*xx' or regex=posix to use posix regular expressions. (not yet) %%%
51 Use regex=auto and '//' like '/^word$/' or regex=pcre to match using perl-style regular expressions.
52
53 Example: 'wiki text -php' looks for all pages containing the words 'wiki' and 'text',  %%%
54          but not containing the word 'php'.
55