[PATCH] WIP: add thread subqueries.

Gaute Hope eg at gaute.vetsj.com
Thu Sep 7 10:47:34 PDT 2017


David Bremner writes on august 21, 2017 3:35:
> David Bremner <david at tethera.net> writes:
> 
> 
>> If you're interested in this feature, please test, let me know if it's
>> workable for your use case.  The syntax here is thread:{$query}. The
>> usual caveats about whitespace apply. The running example is
>>
>> 	     thread:{from:me} and thread:{from:jian} and not thread:{from:dave}
>>
> 
> I was playing around with this, and
> 
>   'thread:"{from:bremner and date:2017}"' and thread:{from:sitaram}
> 
> is about 10x faster than without the date restriction. This is roughly
> proportional to the number of threads matching the first subquery.
> Unfortunately the date restriction needs to be inside the subquery with
> the current design.

So just to clarify; to make true full thread searches there cannot be more than one term in each thread:{} query? Otherwise, all terms in each thread: query must be found in at least one message at the same time. So you could put the date: restriction in a separate thread:{}, but it would be slower?

-gaute



More information about the notmuch mailing list