Skip to content

Commit

Permalink
adjust definition of indexer class
Browse files Browse the repository at this point in the history
  • Loading branch information
shpilu committed Dec 15, 2018
1 parent 310aae8 commit 6548e58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/indexer/indexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ namespace cloris {

class Indexer {
public:
Indexer(const std::string& name) : name_(name) {}
virtual ~Indexer() { }
virtual bool ParseTermsFromConjValue(std::vector<Term>& terms, const ConjValue& value) = 0;
virtual bool Add(const ConjValue& value, bool is_belong_to, int docid) = 0;
virtual const std::list<DocidNode>* GetPostingLists(const Term& term) = 0;
protected:
int type_;

std::string name_;
ValueType type_;
private:

};
Expand Down

0 comments on commit 6548e58

Please sign in to comment.