store::for_each_term: use field-id

We were trying to convert a field (string) to a xapian prefix back to a
field (enum). That's unnecessarily complicated and worse, step 2 won't work.
This commit is contained in:
Dirk-Jan C. Binnema
2022-03-14 09:38:59 +02:00
parent 0368a48149
commit 056fecd6aa
3 changed files with 5 additions and 17 deletions

View File

@ -282,12 +282,12 @@ public:
* takes a lock on the store, so the func should _not_ call any other
* Store:: methods.
*
* @param a prefix
* @param id the field id
* @param func a Callable invoked for each message.
*
* @return the number of times func was invoked
*/
size_t for_each_term(const std::string& prefix, ForEachTermFunc func) const;
size_t for_each_term(Message::Field::Id id, ForEachTermFunc func) const;
/**