xapian-core  1.4.26
phrasepostlist.h
Go to the documentation of this file.
1 
22 #ifndef XAPIAN_INCLUDED_PHRASEPOSTLIST_H
23 #define XAPIAN_INCLUDED_PHRASEPOSTLIST_H
24 
25 #include "selectpostlist.h"
26 #include <vector>
27 
40 
41  std::vector<PostList*> terms;
42 
44 
46  void start_position_list(unsigned i);
47 
49  bool test_doc();
50 
51  public:
52  PhrasePostList(PostList *source_,
53  Xapian::termpos window_,
54  const std::vector<PostList*>::const_iterator &terms_begin,
55  const std::vector<PostList*>::const_iterator &terms_end);
56 
58 
59  Xapian::termcount get_wdf() const;
60 
62 
64  const Xapian::Weight::Internal & stats) const;
65 
66  std::string get_description() const;
67 };
68 
69 #endif
Abstract base class for postlists.
Definition: postlist.h:37
bool test_doc()
Test if the current document contains the terms as a phrase.
Postlist which matches a phrase using positional information.
PositionList ** poslists
Xapian::termpos window
Parent class for classes which only return selected docs.
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term.
std::vector< PostList * > terms
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Definition: types.h:72
Class to hold statistics for a given collection.
PhrasePostList(PostList *source_, Xapian::termpos window_, const std::vector< PostList *>::const_iterator &terms_begin, const std::vector< PostList *>::const_iterator &terms_end)
std::string get_description() const
Return a string description of this object.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
A postlist parent class for classes which only return selected docs from a source postlist (e...
The frequencies for a term.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Definition: types.h:38
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Definition: types.h:83
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 iterating term positions in a document.
Definition: positionlist.h:31
void start_position_list(unsigned i)
Start reading from the i-th position list.