From: Eric Wong <e@80x24.org>
To: Rob Herring <robh@kernel.org>
Cc: Konstantin Ryabitsev <konstantin@linuxfoundation.org>,
meta@public-inbox.org, workflows@vger.kernel.org
Subject: Re: lei: incorrect quoting on saved searches (was Re: lore+lei: getting started)
Date: Mon, 8 Nov 2021 20:49:23 +0000 [thread overview]
Message-ID: <20211108204923.GA12823@dcvr> (raw)
In-Reply-To: <20211108202204.q5zg6bachnvbjlnx@meerkat.local>
Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> On Mon, Nov 08, 2021 at 01:49:07PM -0600, Rob Herring wrote:
>
> Moving this to meta.
I don't think workflows should've been dropped, though.
> > > lei q -I https://lore.kernel.org/all/ -o ~/Mail/floppy \
> > > --threads --dedupe=mid \
> > > '(dfn:drivers/block/floppy.c OR dfhh:floppy_* OR s:floppy \
> > > OR ((nq:bug OR nq:regression) AND nq:floppy)) \
> > > AND rt:1.month.ago..'
> >
> > I tried a similar one which I had working as a bookmark:
That's actually treating the entire single-quoted section as
a phrase search for Xapian.
The correct way to use '(', ')', and '*' on the command-line for
Xapian is to shell escape them:
lei q -I https://lore.kernel.org/all/ -o ~/Mail/floppy \
--threads --dedupe=mid \
\( dfn:drivers/block/floppy.c OR dfhh:floppy_\* OR s:floppy \
OR \(\(nq:bug OR nq:regression\) AND nq:floppy\)\) \
AND rt:1.month.ago...
Since shell escaping so many metacharacters is annoying,
stdin is supported (and implicit iff file|pipe):
echo '(dfn:drivers/block/floppy.c OR dfhh:floppy_* OR s:floppy \
OR ((nq:bug OR nq:regression) AND nq:floppy)) \
AND rt:1.month.ago..' | \
lei q -I https://lore.kernel.org/all/ -o ~/Mail/floppy \
--threads --dedupe=mid
next prev parent reply other threads:[~2021-11-08 20:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-05 17:07 lore+lei: getting started Konstantin Ryabitsev
2021-11-08 2:17 ` Randy Dunlap
2021-11-08 19:49 ` Rob Herring
[not found] ` <20211108202204.q5zg6bachnvbjlnx@meerkat.local>
2021-11-08 20:49 ` Eric Wong [this message]
2021-11-08 21:36 ` lei: incorrect quoting on saved searches (was Re: lore+lei: getting started) Konstantin Ryabitsev
2021-11-08 21:48 ` Eric Wong
2021-11-08 22:36 ` Konstantin Ryabitsev
2021-11-08 22:57 ` Eric Wong
2022-01-10 19:40 ` lore+lei: getting started Bjorn Helgaas
2022-01-11 1:52 ` Kyle Meyer
2022-03-07 16:48 ` Rob Herring
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211108204923.GA12823@dcvr \
--to=e@80x24.org \
--cc=konstantin@linuxfoundation.org \
--cc=meta@public-inbox.org \
--cc=robh@kernel.org \
--cc=workflows@vger.kernel.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox