]> git.cworth.org Git - notmuch/commit
lib/parse-sexp: support phrase queries.
authorDavid Bremner <david@tethera.net>
Tue, 24 Aug 2021 15:17:22 +0000 (08:17 -0700)
committerDavid Bremner <david@tethera.net>
Sun, 5 Sep 2021 00:07:19 +0000 (17:07 -0700)
commit90d9c2ad5c459624d17f92d0844e7a7fbb87d7a2
tree3c511cbadac8d876127f15102d73f4c2d12a598e
parent48ad0e1ff350a35dd0af6a1892edf27aa5115927
lib/parse-sexp: support phrase queries.

Anything that is quoted or not purely word characters is considered a
phrase.  Phrases are not stemmed, because the stems do not have
positional information in the database. It is less efficient to scan
the term twice, but it avoids a second pass to add prefixes, so maybe
it balances out. In any case, it seems unlikely query parsing is very
often a bottleneck.
doc/man7/notmuch-sexp-queries.rst
lib/parse-sexp.cc
test/T081-sexpr-search.sh