]> git.cworth.org Git - obsolete/notmuch-old/commit
database: Add new find_doc_ids_for_term interface.
authorCarl Worth <cworth@cworth.org>
Mon, 21 Dec 2009 23:12:52 +0000 (15:12 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 21 Dec 2009 23:12:52 +0000 (15:12 -0800)
commit3683ba421ab338b53712d67d598aa5e9c435ff8b
tree79578d9731e760dbabc8342566f842ea777d4d35
parent20adc20137c079a6c8ef5474302eb6b5b0cb83e7
database: Add new find_doc_ids_for_term interface.

The existing find_doc_ids function is convenient when the caller
doesn't want to be bothered constructing a term. But when the caller
*does* have the term already, that interface is just wasteful. So we
export a lower-level interface that maps a pre-constructed term to a
document-ID iterators.
lib/database.cc