From: Konstantin Ryabitsev <firstname.lastname@example.org> To: Eric Wong <email@example.com> Cc: Rob Herring <firstname.lastname@example.org>, email@example.com, firstname.lastname@example.org Subject: Re: lei: incorrect quoting on saved searches (was Re: lore+lei: getting started) Date: Mon, 8 Nov 2021 16:36:13 -0500 [thread overview] Message-ID: <email@example.com> (raw) In-Reply-To: <20211108204923.GA12823@dcvr> On Mon, Nov 08, 2021 at 08:49:23PM +0000, Eric Wong wrote: > Konstantin Ryabitsev <firstname.lastname@example.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. Hmm... I noticed that when I `lei edit-search` the initial query that was causing quoting issues, I get the following: [lei] q = (dfn:drivers OR dfn:arch OR dfn:Documentation OR dfn:include OR dfn:scripts) AND f:email@example.com So, the extra quotes didn't get added to the config file. Running `lei up` on that saved search seems to do the right thing, so the erroneous quotes are only added during the initial `lei q` call. > The correct way to use '(', ')', and '*' on the command-line for > Xapian is to shell escape them: But putting them into single quotes should accomplish the same result, no? At least, that's how I've always understood shell escaping. -K
next prev parent reply other threads:[~2021-11-08 21:36 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <firstname.lastname@example.org> [not found] ` <CAL_JsqJBh1O3H2-P07AHzVq0x89BoP_N6P=rT5up6=3QyF_B0Q@mail.gmail.com> 2021-11-08 20:22 ` Konstantin Ryabitsev 2021-11-08 20:49 ` Eric Wong 2021-11-08 21:36 ` Konstantin Ryabitsev [this message] 2021-11-08 21:48 ` Eric Wong 2021-11-08 22:36 ` Konstantin Ryabitsev 2021-11-08 22:57 ` Eric Wong 2021-11-08 20:53 ` Rob Herring 2021-11-08 21:27 ` [PATCH] searchidx: index "diff --git a/... b/..." headers Eric Wong 2021-11-09 0:38 ` Rob Herring 2021-11-09 3:12 ` Eric Wong 2021-11-09 4:03 ` Rob Herring 2021-11-09 5:08 ` Eric Wong
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://public-inbox.org/README * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --subject='Re: lei: incorrect quoting on saved searches (was Re: lore+lei: getting started)' \ /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
Code repositories for project(s) associated with this inbox: https://80x24.org/public-inbox.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).