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:
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user