Unexpected search results

David Bremner david at tethera.net
Mon Jan 27 15:44:20 PST 2014


Paul Melis <paul.melis at surfsara.nl> writes:

> Hi,
>
> How exactly does the search function work when it comes to things like 
> searching in the from or subject field? See the below queries and (lack 
> of) results:
>
> paulmlocal at sara11006:/data$ notmuch search from:dem
> paulmlocal at sara11006:/data$ notmuch search from:demi
> paulmlocal at sara11006:/data$ notmuch search from:demiu
> paulmlocal at sara11006:/data$ notmuch search from:demiur
> paulmlocal at sara11006:/data$ notmuch search from:demiurg
> thread:0000000000012d53   January 18 [1/5] Demiurg HG| Paul Melis, XXXXX
> thread:0000000000011b82  November 14 [3/6] Demiurg HG| Paul Melis; XXXXX
>
> Only the last queries returns the mails I was looking for, while 
> prefixes of the query don't return anything. Even stranger is that the 
> actual from e-mail address is demiurghg at ...., so why does "from:demiurg" 
> match (which is also a prefix of the mail address), but all the other 
> don't match?

I guess it has to do with the mysteries of stemming. There is some
information at

            http://notmuchmail.org/searching/

In your case, it would probably help to try

notmuch search from:"demi*"

Note that the * only works at the end.


More information about the notmuch mailing list