xapian-core  1.4.27
exactphrasepostlist.h
Go to the documentation of this file.
1 
22 #ifndef XAPIAN_INCLUDED_EXACTPHRASEPOSTLIST_H
23 #define XAPIAN_INCLUDED_EXACTPHRASEPOSTLIST_H
24 
25 #include "selectpostlist.h"
26 #include <vector>
27 
39  std::vector<PostList*> terms;
40 
42 
43  unsigned * order;
44 
46  void start_position_list(unsigned i);
47 
49  bool test_doc();
50 
51  public:
53  const std::vector<PostList*>::const_iterator &terms_begin,
54  const std::vector<PostList*>::const_iterator &terms_end);
55 
57 
58  Xapian::termcount get_wdf() const;
59 
61 
63  const Xapian::Weight::Internal & stats) const;
64 
65  std::string get_description() const;
66 };
67 
68 #endif
TermFreqs get_termfreq_est_using_stats(const Xapian::Weight::Internal &stats) const
Get an estimate for the termfreq and reltermfreq, given the stats.
Abstract base class for postlists.
Definition: postlist.h:37
Postlist which matches an exact phrase using positional information.
void start_position_list(unsigned i)
Start reading from the i-th position list.
std::string get_description() const
Return a string description of this object.
PositionList ** poslists
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term.
Parent class for classes which only return selected docs.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Definition: types.h:72
ExactPhrasePostList(PostList *source_, const std::vector< PostList *>::const_iterator &terms_begin, const std::vector< PostList *>::const_iterator &terms_end)
Class to hold statistics for a given collection.
bool test_doc()
Test if the current document contains the terms as an exact phrase.
A postlist parent class for classes which only return selected docs from a source postlist (e...
std::vector< PostList * > terms
The frequencies for a term.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Definition: types.h:38
Abstract base class for iterating term positions in a document.
Definition: positionlist.h:31