This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
VectorSearch/lib_vector_search/include/grouped_finder.h

18 lines
321 B
C++

#pragma once
#include "finder.h"
#include "word_list.h"
#include <unordered_map>
class GroupedFinder : public Finder {
private:
std::unordered_map<char, WordRefList> groups_;
public:
GroupedFinder(const WordList &word_list);
virtual WordRefList
find_prefix(std::string_view search_prefix) const override;
};