Re: [PATCH] add has: query prefix to search for specific properties

Subject: Re: [PATCH] add has: query prefix to search for specific properties

Date: Sun, 17 Jul 2016 07:38:10 -0300

To: Daniel Kahn Gillmor, Notmuch Mail

Cc:

From: David Bremner


David Bremner <david@tethera.net> writes:

> Do we want to have the same prefix listed in BOOLEAN_PREFIX_INTERNAL and
> BOOLEAN_PREFIX_EXTERNAL? this seems quite fragile. If we don't though,
> we have to use the same prefix name for queries as in the code (which is
> already sprinkled with _find_prefix ("property") ).

Thinking about it a bit more, there's really no problem here. The
invariant to maintain is the names are unique across all 3 tables used
by _find_prefix, not the necessarily the prefixes. Indeed there's
already the example of "is" and "tag".

d

Thread: