26 #ifndef OM_HGUARD_OMENQUIREINTERNAL_H 27 #define OM_HGUARD_OMENQUIREINTERNAL_H 39 #include <unordered_map> 173 vector<Xapian::Internal::opt_intrusive_ptr<MatchSpy>>
spies;
189 const Query & get_query()
const;
221 void read_docs()
const;
238 vector<Xapian::Internal::MSetItem>
items;
263 matches_lower_bound(0),
264 matches_estimated(0),
265 matches_upper_bound(0),
266 uncollapsed_lower_bound(0),
267 uncollapsed_estimated(0),
268 uncollapsed_upper_bound(0),
280 double max_possible_,
281 double max_attained_,
282 vector<Xapian::Internal::MSetItem> &items_,
283 double percent_factor_)
284 : percent_factor(percent_factor_),
286 firstitem(firstitem_),
287 matches_lower_bound(matches_lower_bound_),
288 matches_estimated(matches_estimated_),
289 matches_upper_bound(matches_upper_bound_),
290 uncollapsed_lower_bound(uncollapsed_lower_bound_),
291 uncollapsed_estimated(uncollapsed_estimated_),
292 uncollapsed_upper_bound(uncollapsed_upper_bound_),
293 max_possible(max_possible_),
294 max_attained(max_attained_) {
295 std::swap(items, items_);
304 int convert_to_percent_internal(
double wt)
const;
306 std::string snippet(
const std::string & text,
size_t length,
309 const std::string & hi_start,
310 const std::string & hi_end,
311 const std::string & omit)
const;
329 const set<Xapian::docid> &
get_items()
const {
return items; }
337 #endif // OM_HGUARD_OMENQUIREINTERNAL_H
The Xapian namespace contains public interfaces for the Xapian library.
std::string eweightname
The weighting scheme to use for query expansion.
string get_description() const
Return a string describing this object.
const Xapian::Database db
The database which this enquire object uses.
Xapian::doccount firstitem
Rank of first item in MSet.
MSetItem(double wt_, Xapian::docid did_, const string &key_, Xapian::doccount collapse_count_)
This class is used to access a database, or a group of databases.
std::unordered_map< std::string, double > snippet_bg_relevance
Class representing a stemming algorithm.
Xapian::doccount collapse_count
Count of collapses done on collapse_key so far.
Xapian::docid did
Document id.
Class representing a list of search results.
Virtual base class for expand decider functor.
Xapian::doccount matches_lower_bound
static Xapian::Stem stemmer
string sort_key
Used when sorting by value.
Build key strings for MSet ordering or collapsing.
Xapian::Enquire::docid_order order
Xapian::Internal::intrusive_ptr< const Enquire::Internal > enquire
Xapian::Enquire reference, for getting documents.
Xapian::doccount uncollapsed_upper_bound
Class for iterating over a list of terms.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Internal(Xapian::doccount firstitem_, Xapian::doccount matches_upper_bound_, Xapian::doccount matches_lower_bound_, Xapian::doccount matches_estimated_, Xapian::doccount uncollapsed_upper_bound_, Xapian::doccount uncollapsed_lower_bound_, Xapian::doccount uncollapsed_estimated_, double max_possible_, double max_attained_, vector< Xapian::Internal::MSetItem > &items_, double percent_factor_)
Note: destroys parameter items.
Xapian::doccount collapse_max
Iterator over a Xapian::MSet.
Weight * weight
The weight to use for this query.
Xapian::Weight::Internal class, holding database and term statistics.
Query query
The user's query.
double wt
Weight calculated.
Class to hold statistics for a given collection.
string collapse_key
Value which was used to collapse upon.
map< Xapian::doccount, Xapian::Document > indexeddocs
Cache of documents, indexed by MSet index.
An item resulting from a query.
const Xapian::Enquire::Internal::sort_setting VAL
Xapian::valueno collapse_key
set< Xapian::doccount > requested_docs
The set of documents which have been requested but not yet collected.
API for working with Xapian databases.
termcount qlen
The query length.
Xapian::Internal::opt_intrusive_ptr< KeyMaker > sorter
Xapian::doccount matches_upper_bound
Base class for objects managed by intrusive_ptr.
Xapian::Weight::Internal * stats
Provides the term frequency and weight for each term in the query.
const Xapian::Enquire::Internal::sort_setting REL_VAL
vector< Xapian::Internal::MSetItem > items
A list of items comprising the (selected part of the) MSet.
MSetItem(double wt_, Xapian::docid did_, const string &key_)
Base class for matcher decision functor.
set< Xapian::docid > items
Items in the relevance set.
const set< Xapian::docid > & get_items() const
MSetItem(double wt_, Xapian::docid did_)
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Xapian::doccount matches_estimated
unsigned valueno
The number for a value slot in a document.
const Xapian::Enquire::Internal::sort_setting REL
Class representing a list of search results.
double expand_k
The parameter required for TradWeight query expansion.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Class representing a query.
vector< Xapian::Internal::opt_intrusive_ptr< MatchSpy > > spies
API for working with documents.
A smart pointer that optionally uses intrusive reference counting.
A smart pointer that uses intrusive reference counting.
double percent_factor
Factor to multiply weights by to convert them to percentages.
Xapian::doccount uncollapsed_lower_bound
Internals of enquire system.
docid_order
Ordering of docids.
A handle representing a document in a Xapian database.
Xapian::doccount uncollapsed_estimated
Abstract base class for weighting schemes.