| 114 | |
| 115 | struct 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; |
nothing calls this directly
no outgoing calls
no test coverage detected