]> rtime.felk.cvut.cz Git - notmuch.git/commit
lib: Separate all phrases indexed by _notmuch_message_gen_terms
authorAustin Clements <amdragon@MIT.EDU>
Mon, 16 Jun 2014 02:40:34 +0000 (22:40 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 18 Jun 2014 21:03:18 +0000 (18:03 -0300)
commitdc64ab67207fef897bca88741fc42330793d7bd8
treedefb22c1a29226359d5badbb7d092848edeeb07b
parentc1805576a0f57540bdf8643f1b7989fad793b929
lib: Separate all phrases indexed by _notmuch_message_gen_terms

This adds a 100 termpos gap between all phrases indexed by
_notmuch_message_gen_terms.  This fixes a bug where terms from the end
of one header and the beginning of another header could match together
in a single phrase and a separate bug where term positions of
un-prefixed terms overlapped.

This fix only affects newly indexed messages.  Messages that are
already indexed won't benefit from this fix without re-indexing, but
the fix won't make things any worse for existing messages.
lib/message.cc
test/T080-search.sh