aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-01-18 13:59:30 +0100
committerDavid Bremner <david@tethera.net>2015-02-24 08:29:01 +0100
commit7fa58b792c5f432a46008ee720afeb3a6ef4c81b (patch)
treee49ce7dc63c96a47279af40b6d2cd2a35ea119de /doc
parent647c0b0692379e434a3ccb213f88b89fae8b4321 (diff)
doc: add material on stemming and wildcards
This is lightly massaged from the searching page on the wiki.
Diffstat (limited to 'doc')
-rw-r--r--doc/man7/notmuch-search-terms.rst27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/man7/notmuch-search-terms.rst b/doc/man7/notmuch-search-terms.rst
index 54138d23..7fb4a27d 100644
--- a/doc/man7/notmuch-search-terms.rst
+++ b/doc/man7/notmuch-search-terms.rst
@@ -135,6 +135,33 @@ operators, but will have to be protected from interpretation by the
shell, (such as by putting quotation marks around any parenthesized
expression).
+Stemming
+--------
+
+**Stemming** in notmuch means that these searches
+
+::
+
+ notmuch search detailed
+ notmuch search details
+ notmuch search detail
+
+will all return identical results, because Xapian first "reduces" the
+term to the common stem (here 'detail') and then performs the search.
+
+There are two ways to turn this off: a search for a capitalized word
+will be performed unstemmed, so that one can search for "John" and not
+get results for "Johnson"; phrase searches are also unstemmed (see
+below for details). Stemming is currently only supported for
+English. Searches for words in other languages will be performed unstemmed.
+
+Wildcards
+---------
+
+It is possible to use a trailing '\*' as a wildcard. A search for
+'wildc\*' will match 'wildcard', 'wildcat', etc.
+
+
Boolean and Probabilistic Prefixes
----------------------------------