DokuWiki's default search is a “logical AND” search — that is, all the words you put in the query will be used.
Search is always case insensitive.
All of the syntaxes can be combined together.
In this section, we'll use square brackets [ … ] to represent characters entered in the query.
You can search for exact phrases by putting double quotes around a set of words, e.g. [ “Cornell Law Review” ].
To exclude pages, from a search, which contain a specific word or phrase, then attach a minus sign - immediately before the excluded word/phrase.
For example, searching for [ “Cornell Law Review” ]
those which contain “Cornell Law Review”:
But, searching for [ “Cornell Law Review” -Humbertson ]
those which contain “Cornell Law Review” but do not contain “Humbertson”:
To search for words for which you want the root word, plus any variation with suffixes (-ed, -ing, etc.), by using Partial Matching.
Add a prefix and/or suffix of an asterisk * to a search word.
For example, searching for [ onboard ]
but searching for [ onboard* ]
Extending the example:
Searching for [ onboard ] results in these top search results:
(where “# hits” in the search results means number of times word appeared in document);
while searching for [ onboard* ] results in a different set of top 3 search results — and a larger number of “hits” within each document:
You can also perform [ doku* ] (prefix matching) and [*okuwik*] (partial matching).
.
Note that * is not a “wildcard”. You can't use it inside of a word. For example, searching [ doku*iki ] will not find anything for you.
By default, DokuWiki searches for all the words in your search, but you can also search for any of your search terms. (This is called a logical OR search.)
OR searching is done by including | or or as a separator between your search terms.
For example, the query [ event | show ] will find pages which contain either “plugin” or “template” or both.
The query [ event or show ] will do the same thing.
You can make use of OR as a way to find search terms with spelling variations, for example [ capitol | capital ], or, [ state capitol | state capital ].
_
The OR operator has a lower 'precedence' than the default AND operator.
That is, the query
[ gun show | event ]
is the same as
[ (gun show) | event ].
$$$ include some actual hits pages $$$
$$$ add a screen print of the sample search $$$
.
But, if you needed to search for (gun show) or for (gun event), you could not write it as [ gun (show | event) ].
Instead, use a grouping search — as described below.
You can group search terms by enclosing terms with parentheses ( … ). Having the highest precedence, parentheses may be used to force precedence.
For example, the query [ dokuwiki -(plugin | @plugin) ] will find pages which contain a word “DokuWiki” but not contain a word “plugin” and also are not within a namespace “plugin”.