xapian-core  1.4.25
Public Member Functions | List of all members
Xapian::Internal::CmpMaxOrTerms Struct Reference

Class providing an operator which sorts postlists to select max or terms. More...

Public Member Functions

bool operator() (const PostList *a, const PostList *b)
 Return true if and only if a has a strictly greater termweight than b. More...
 

Detailed Description

Class providing an operator which sorts postlists to select max or terms.

This returns true if a has a (strictly) greater termweight than b, unless a or b contain no documents, in which case the other one is selected.

Definition at line 78 of file queryinternal.cc.

Member Function Documentation

◆ operator()()

bool Xapian::Internal::CmpMaxOrTerms::operator() ( const PostList a,
const PostList b 
)
inline

Return true if and only if a has a strictly greater termweight than b.

Definition at line 80 of file queryinternal.cc.

References Xapian::PostingIterator::Internal::get_maxweight().


The documentation for this struct was generated from the following file: