unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Andrei POPESCU <andreimpopescu@gmail.com>
To: notmuch@notmuchmail.org
Subject: Re: [RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documentation]
Date: Fri, 16 Mar 2012 02:30:53 +0200	[thread overview]
Message-ID: <20120316003053.GR2981@sid.nuvreauspam> (raw)
In-Reply-To: <20120315211107.GA2670@mit.edu>

[-- Attachment #1: Type: text/plain, Size: 2336 bytes --]

On Jo, 15 mar 12, 17:11:08, Austin Clements wrote:
> 
> I think having two divergent documents covering the same thing is less
> than ideal, but perhaps they could be merged in the near future.

I want to have this page more or less complete and descriptive. Once 
this is done I should be able to rewrite it more like a reference.

Regarding 'notmuch help search-terms':

$ notmuch help search-terms | wc -l
88

IMHO that text is better suited for a manpage, the help should be just a 
(very short) reference to refresh ones memory. What do you think?
 
> A few comments:
> 
> The section on "Languages other than English" isn't quite correct.
> Xapian has no idea what language is being used, so it will still stem
> terms in other languages, but using English stemming rules.

Then I think it's safe to assume the results are very much dependent on 
the language, so if the language has some similarities to English Xapian 
might do some stemming.

> Notmuch doesn't use synonyms.

Thanks.

> It might be worth pointing out that "+term1" and "term1" are
> equivalent.

Yes.

> "notmuch search -term2" doesn't actually work.  I've never looked in
> to why, but I've found that Xapian ignores '-' at the beginning of a
> query or a parenthesized expression.

Not sure what you mean here. Does Xapian just ignore the '-' and 
searches as if it wasn't specified? I'm usually testing stuff with 
'notmuch count', but I get:

$ notmuch count -Debian
Unrecognized option: -Debian

With 'search' I get results, but right now I can't think of a query to 
test.

> "notmuch search term1 -term2" will work.

Does 'notmuch search -term1 term2' work?

> In the brackets section, you'll need shell escaping for those queries
> to work.  It might be worth pointing out the need for shell escaping
> at the beginning.

Right, anything other than brackets and '*'?

> XOR, NEAR, and ADJ were intentionally undocumented in
> notmuch-search-terms because they may go away some day and we don't
> want people thinking they can depend on them.

In such case I think it's better to state so.

I'll integrate all your comments (if somebody else doesn't beat me to 
it).

Kind regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

  reply	other threads:[~2012-03-16  0:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-15 22:06 Partial words on notmuch search? Andrei Popescu
2012-01-16  1:07 ` mailinglists
2012-01-16 20:21   ` Andrei Popescu
2012-01-16 22:26     ` David Bremner
2012-01-16 22:38       ` Andrei Popescu
2012-01-17  2:34     ` Austin Clements
2012-01-17 17:43       ` Jani Nikula
2012-01-17 19:47         ` Austin Clements
2012-01-17 22:14       ` Improving notmuch query documentation [was: Re: Partial words on notmuch search?] Andrei Popescu
2012-01-17 22:29         ` Austin Clements
2012-01-20 19:08           ` Mark Anderson
2012-03-15 21:15             ` Austin Clements
2012-03-15  9:39           ` [RFC] http://notmuchmail.org/searching/ [was: Re: Improving notmuch query documentation] Andrei POPESCU
2012-03-15 21:11             ` Austin Clements
2012-03-16  0:30               ` Andrei POPESCU [this message]
2012-03-16  2:11                 ` Austin Clements
2012-03-16 22:29                   ` Andrei POPESCU
2012-03-16 23:51                     ` David Bremner
2012-03-17  0:20                     ` Austin Clements
2012-03-17 14:40                       ` Andrei POPESCU
2012-03-17 17:16                         ` Austin Clements
2012-03-17 19:59                           ` Andrei POPESCU
2012-03-16 16:52                 ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120316003053.GR2981@sid.nuvreauspam \
    --to=andreimpopescu@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).