* Using Xapian synonyms with notmuch @ 2019-05-30 6:10 Xu Wang 2019-05-30 10:19 ` David Bremner 0 siblings, 1 reply; 3+ messages in thread From: Xu Wang @ 2019-05-30 6:10 UTC (permalink / raw) To: notmuch I have some contacts who go by several names (mostly people who use their native name in addition to sometimes using a name easier to pronounce for others; but also some secret agents). I often want to do something like "from:James" and where notmuch gives me back results with emails from "James", "Jimmy" and from "Jaime". I have done searching and found some relevant threads: https://notmuchmail.org/pipermail/notmuch/2013/015571.html https://xapian.org/docs/synonyms.html https://getting-started-with-xapian.readthedocs.io/en/latest/howtos/synonyms.html However, they are very technical for me. It is not possible to just put something in .notmuch-config that specifies synonyms so that notmuch will build the Xapian database with those aliases? By the way, I don't know Xapian at all or how to call it manually. I have very simple .notmuch-config and I don't have any deep understanding or programming experience. Kind regards, Xu ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using Xapian synonyms with notmuch 2019-05-30 6:10 Using Xapian synonyms with notmuch Xu Wang @ 2019-05-30 10:19 ` David Bremner [not found] ` <CAJhTkNjKRP-3pCxM2LumRrtmKXE6aRWAtR_9DqP-+pxLyVp_+g@mail.gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: David Bremner @ 2019-05-30 10:19 UTC (permalink / raw) To: Xu Wang, notmuch Xu Wang <xuwang762@gmail.com> writes: > I have some contacts who go by several names (mostly people who use > their native name in addition to sometimes using a name easier to > pronounce for others; but also some secret agents). I often want to do > something like "from:James" and where notmuch gives me back results > with emails from "James", "Jimmy" and from "Jaime". > I think the only solution that is possible with current notmuch is to use a stored query $ notmuch config set query.james "from:James or from:Jimmy or from Jaime" $ notmuch search query:james and date:today ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CAJhTkNjKRP-3pCxM2LumRrtmKXE6aRWAtR_9DqP-+pxLyVp_+g@mail.gmail.com>]
* Re: Using Xapian synonyms with notmuch [not found] ` <CAJhTkNjKRP-3pCxM2LumRrtmKXE6aRWAtR_9DqP-+pxLyVp_+g@mail.gmail.com> @ 2019-05-31 10:46 ` David Bremner 0 siblings, 0 replies; 3+ messages in thread From: David Bremner @ 2019-05-31 10:46 UTC (permalink / raw) To: Xu Wang; +Cc: notmuch Xu Wang <xuwang762@gmail.com> writes: > > xu:$ notmuch config set query.james "from:james or from:jimmy or from:jaime" > xu:$ notmuch search "from:james" | wc -l > 79 > xu:$ notmuch search "from:james or from:jimmy or from:jaime" | wc -l > 91 > xu:$ notmuch search james | wc -l > 177 > > I was hoping above quantities would be the same, so I think I did > something wrong. That's not how saved queries work. You need to search for "query:james" not "from:james". ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-31 10:45 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-05-30 6:10 Using Xapian synonyms with notmuch Xu Wang 2019-05-30 10:19 ` David Bremner [not found] ` <CAJhTkNjKRP-3pCxM2LumRrtmKXE6aRWAtR_9DqP-+pxLyVp_+g@mail.gmail.com> 2019-05-31 10:46 ` 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).