21 #ifndef XAPIAN_INCLUDED_QUERYINTERNAL_H 22 #define XAPIAN_INCLUDED_QUERYINTERNAL_H 51 : term(term_), wqf(wqf_), pos(pos_) { }
63 void serialise(std::string & result)
const;
78 void serialise(std::string & result)
const;
96 return subquery.
internal->get_length();
99 void serialise(std::string & result)
const;
126 const std::string &begin_,
127 const std::string &end_)
132 void serialise(std::string & result)
const;
148 void serialise(std::string & result)
const;
164 void serialise(std::string & result)
const;
177 explicit QueryBranch(
size_t n_subqueries) : subqueries(n_subqueries) { }
188 const std::string get_description_helper(
const char * op,
194 void serialise(std::string & result)
const;
198 virtual void add_subquery(
const Xapian::Query & subquery) = 0;
265 double factor)
const;
297 double factor)
const;
342 void serialise(std::string & result)
const;
356 void serialise(std::string & result)
const;
373 void serialise(std::string & result)
const;
423 max_expansion(max_expansion_),
436 void serialise(std::string & result)
const;
466 void serialise(std::string & result)
const;
475 #endif // XAPIAN_INCLUDED_QUERYINTERNAL_H
The Xapian namespace contains public interfaces for the Xapian library.
QueryXor(size_t n_subqueries)
QueryValueGE(Xapian::valueno slot_, const std::string &limit_)
Abstract base class for postlists.
QueryAnd(size_t n_subqueries)
#define XAPIAN_PURE_FUNCTION
Like XAPIAN_CONST_FUNCTION, but such a function can also examine global memory, perhaps via pointer o...
virtual void postlist_sub_and_like(Xapian::Internal::AndContext &ctx, QueryOptimiser *qopt, double factor) const
QueryValueBase(Xapian::valueno slot_)
termcount get_length() const
QuerySynonym(size_t n_subqueries)
virtual const Query get_subquery(size_t n) const
unsigned _refs
Reference count.
virtual void postlist_sub_xor(Xapian::Internal::XorContext &ctx, QueryOptimiser *qopt, double factor) const
QueryNear(size_t n_subqueries, Xapian::termcount window_)
virtual void postlist_sub_or_like(Xapian::Internal::OrContext &ctx, QueryOptimiser *qopt, double factor) const
QueryOrLike(size_t num_subqueries_)
Xapian::Internal::intrusive_ptr< Internal > internal
Abstract base class for postlists.
Xapian::Query::op get_type() const
QueryMax(size_t n_subqueries)
QueryEliteSet(size_t n_subqueries, Xapian::termcount set_size_)
QueryFilter(size_t n_subqueries)
QueryAndNot(size_t n_subqueries)
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
QueryWildcard(const std::string &pattern_, Xapian::termcount max_expansion_, int max_type_, Query::op combiner_)
const std::string & get_pattern() const
const std::string & get_term() const
Xapian::Internal::opt_intrusive_ptr< PostingSource > source
virtual size_t get_num_subqueries() const
QueryAndMaybe(size_t n_subqueries)
QueryValueRange(Xapian::valueno slot_, const std::string &begin_, const std::string &end_)
void gather_terms(void *void_terms) const
size_t get_window() const
QueryTerm(const std::string &term_, Xapian::termcount wqf_, Xapian::termpos pos_)
Xapian::termcount max_expansion
void serialise(std::string &result) const
QueryValueLE(Xapian::valueno slot_, const std::string &limit_)
Xapian::termcount set_size
Base class which provides an "external" source of postings.
QueryOr(size_t n_subqueries)
QueryBranch(size_t n_subqueries)
QueryPhrase(size_t n_subqueries, Xapian::termcount window_)
QueryAndLike(size_t num_subqueries_)
Append only vector of Query objects.
std::string get_description() const
PostingIterator::Internal * postlist(QueryOptimiser *qopt, double factor) const
unsigned valueno
The number for a value slot in a document.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
QueryWindowed(size_t n_subqueries, Xapian::termcount window_)
Xapian::valueno get_slot() const
termcount get_length() const
const Xapian::termcount DEFAULT_ELITE_SET_SIZE
Default set_size for OP_ELITE_SET:
Class representing a query.
A smart pointer that optionally uses intrusive reference counting.
QueryWildcard * change_combiner(Xapian::Query::op new_op)
Change the combining operator.