]> rtime.felk.cvut.cz Git - notmuch.git/commit
Add indexing for the mimetype term
authorTodd <todd@electricoding.com>
Thu, 22 Jan 2015 23:43:38 +0000 (17:43 -0600)
committerDavid Bremner <david@tethera.net>
Sat, 24 Jan 2015 15:47:59 +0000 (16:47 +0100)
commitb04bc967f9837e9d451ef88c276c744aa55accaa
treec75cfd2569930441556d89bf2bd9c2b4c801c003
parent0de999aab5bd4cd44bc4ea76fd1d25172bd839ae
Add indexing for the mimetype term

This adds the indexing support for the "mimetype:" term and removes
the broken test flag.  The indexing is probablistic in Xapian terms,
which gives a better experience to end users.  Standard content-types
of the form "foo/bar" are automatically interpreted as phrases in
Xapian due to the embedded slash.

Assume, separate messages with application/pdf and application/x-pdf
are indexed, then:

- mimetype:application/x-pdf will find only the application/x-pdf
- mimetype:application/pdf will find only the application/pdf
- mimetype:pdf will find both of the messages
lib/database.cc
lib/index.cc
test/T190-multipart.sh