summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-04 14:13:21 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-04 14:13:21 -0400
commite4119f048c9ddd8795df378ff1ad676dca28de82 (patch)
tree46ac0e2defa99a166985e12a74a278dfb5a86fbd /doc
parent319e2c94deeffc3ffe1244d8afe27c6007b9b47b (diff)
The search interface now allows searching for a page by title ("title:foo"), as well as for pages that contain a given link ("link:bar").
Diffstat (limited to 'doc')
-rw-r--r--doc/ikiwiki/searching.mdwn20
-rw-r--r--doc/todo/search_terms.mdwn2
2 files changed, 22 insertions, 0 deletions
diff --git a/doc/ikiwiki/searching.mdwn b/doc/ikiwiki/searching.mdwn
new file mode 100644
index 000000000..0eeb5a6b9
--- /dev/null
+++ b/doc/ikiwiki/searching.mdwn
@@ -0,0 +1,20 @@
+[[!meta robots="noindex, follow"]]
+
+[[!if test="enabled(search)"
+then="This wiki has searching **enabled**."
+else="This wiki has searching **disabled**."]]
+
+If searching is enabled, you can enter search terms in the search field,
+like you'd expect. There are a few special things you can do to constuct
+more powerful searches.
+
+* To match a phrase, enclose it in double quotes.
+* `AND` can be used to search for documents containing two expressions.
+* `OR` can be used to search for documents containing either one of
+ two expressions.
+* Parentheses can be used to build up complicated search expressions. For
+ example, "(foo AND bar) OR (me AND you)"
+* Prefix a search term with "-" to avoid it from appearing in the results.
+ For example, "-discussion" will omit "discussion".
+* To search for a page with a given title, use "title:foo".
+* To search for pages that contain a "bar" link, use "link:bar".
diff --git a/doc/todo/search_terms.mdwn b/doc/todo/search_terms.mdwn
index 4e3f3aa6b..0e5edb520 100644
--- a/doc/todo/search_terms.mdwn
+++ b/doc/todo/search_terms.mdwn
@@ -3,3 +3,5 @@ searches. For example, "title:foo", or "link:somepage", or "author:foo", or
"copyright:GPL".
Reference: <http://xapian.org/docs/omega/termprefixes.html>
+
+[[done]] for title and link, which seem like the really useful ones.