1 :class:`Query` -- A search query
2 ================================
4 .. currentmodule:: notmuch
10 .. attribute:: Query.SORT
12 Defines constants that are used as the mode in which to open a database.
15 Sort by message date, oldest first.
18 Sort by message date, newest first.
21 Sort by email message ID.
24 Do not apply a special sort order (returns results in document id
27 .. automethod:: set_sort
31 Instance attribute :attr:`sort` contains the sort order (see
32 :attr:`Query.SORT`) if explicitly specified via
33 :meth:`set_sort`. By default it is set to `None`.
35 .. automethod:: exclude_tag
37 .. automethod:: search_threads
39 .. automethod:: search_messages
41 .. automethod:: count_messages
43 .. automethod:: count_threads