unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* quirks with subject searching
@ 2015-04-20 13:35 Matthew Lear
  2015-04-20 23:47 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Lear @ 2015-04-20 13:35 UTC (permalink / raw)
  To: notmuch

Hello all,
This may well be due to my novice use of search syntax, but I'm having
issues find needle in haystack within the subject of an email thread.
This simple example highlights the problem I'm having:

When using notmuch search subject:foo for threads with the following
subjects...

item: foo
an item: foo
an item: XYfoo1234
an item: XYfoo bar

... only the first two are found.

Also:
* notmuch searching for subject:"item: f" gives zero results.

* notmuch searching for subject:"(*foo*)" results in the first two threads
being found and also a thread with the word footprint in the middle of the
subject being found (subject is "memory footprint without feature").

* notmuch searching for subject:"an item: XYfoo1234" results in the third
being found.

Why doesn't notmuch search subject:foo find all four threads, and why
doesn't notmuch search subject:"item: f" find anything at all?

This was spurred on by me having a thread with the following as the subject..

Release Update: BT52_ETW_MD4.5.4alpha1_take1

..and notmuch search subject:4.5.4 finding nothing.

Something doesn't seem right here. man notmuch-search-terms doesn't seem
to explain this as far as I can see.
FWIW I'm using notmuch from git, master @ 294bb6d.
Any thoughts / tips?
Thanks,
--  Matt

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: quirks with subject searching
  2015-04-20 13:35 quirks with subject searching Matthew Lear
@ 2015-04-20 23:47 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2015-04-20 23:47 UTC (permalink / raw)
  To: matt, notmuch

Matthew Lear <matt@bubblegen.co.uk> writes:
>
> item: foo
> an item: foo
> an item: XYfoo1234
> an item: XYfoo bar
>
> ... only the first two are found.
>
> Also:
> * notmuch searching for subject:"item: f" gives zero results.

notmuch (and xapian) are based on searching for words, not
substrings. It only finds subwords through a process of stemming [1]. 

>
> * notmuch searching for subject:"(*foo*)" results in the first two threads
> being found and also a thread with the word footprint in the middle of the
> subject being found (subject is "memory footprint without feature").

wildcards [2] are supported only at the end of words, so I suppose the first
* is just ignored.

>
> Why doesn't notmuch search subject:foo find all four threads, and why
> doesn't notmuch search subject:"item: f" find anything at all?

Hopefully the above clears it up. This topic comes up fairly often; I'm
not sure if there is something we could add to the  (already rather
long) notmuch-search-terms manpage that would help.


[1] "Stemming" in notmuch-search-terms (7)
[2] "Wildcards" in notmuch-search-terms (7)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-20 23:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-20 13:35 quirks with subject searching Matthew Lear
2015-04-20 23:47 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).