11 #ifndef META_INVERTED_INDEX_H_
12 #define META_INVERTED_INDEX_H_
35 template <
class,
class>
63 using std::runtime_error::runtime_error;
66 using primary_key_type = term_id;
67 using secondary_key_type = doc_id;
76 template <
class Index,
class... Args>
77 friend std::shared_ptr<Index>
make_index(
const std::string&, Args&&...);
83 template <
class Index,
template <
class,
class>
class Cache,
class... Args>
84 friend std::shared_ptr<cached_index<Index, Cache>>
85 make_index(
const std::string& config_file, Args&&... args);
129 virtual std::shared_ptr<postings_data_type>
137 uint64_t
doc_freq(term_id t_id)
const;
143 uint64_t
term_freq(term_id t_id, doc_id d_id)
const;
A class to represent the per-PrimaryKey data in an index's postings file.
Definition: forward_index.h:30