MCPcopy Create free account
hub / github.com/djcb/mu / ThreadKeyMaker

Method ThreadKeyMaker

lib/mu-query.cc:116–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115struct ThreadKeyMaker : public Xapian::KeyMaker {
116 explicit ThreadKeyMaker(const QueryMatches& matches) : match_info_(matches) {}
117 std::string operator()(const Xapian::Document& doc) const override {
118 const auto it{match_info_.find(doc.get_docid())};
119 return (it == match_info_.end()) ? "" : it->second.thread_path;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected