xapian-core
1.4.27
|
Simple implementation of Stopper class - this will suit most users. More...
#include <queryparser.h>
Public Member Functions | |
SimpleStopper () | |
Default constructor. More... | |
template<class Iterator > | |
SimpleStopper (Iterator begin, Iterator end) | |
Initialise from a pair of iterators. More... | |
void | add (const std::string &word) |
Add a single stop word. More... | |
virtual bool | operator() (const std::string &term) const |
Is term a stop-word? More... | |
virtual std::string | get_description () const |
Return a string describing this object. More... | |
Public Member Functions inherited from Xapian::Stopper | |
Stopper () | |
Default constructor. More... | |
virtual | ~Stopper () |
Class has virtual methods, so provide a virtual destructor. More... | |
Stopper * | release () |
Start reference counting this object. More... | |
const Stopper * | release () const |
Start reference counting this object. More... | |
Public Member Functions inherited from Xapian::Internal::opt_intrusive_base | |
opt_intrusive_base (const opt_intrusive_base &) | |
opt_intrusive_base & | operator= (const opt_intrusive_base &) |
opt_intrusive_base () | |
Construct object which is initially not reference counted. More... | |
virtual | ~opt_intrusive_base () |
void | ref () const |
void | unref () const |
Private Attributes | |
std::set< std::string > | stop_words |
Additional Inherited Members | |
Public Attributes inherited from Xapian::Internal::opt_intrusive_base | |
unsigned | _refs |
Reference count. More... | |
Protected Member Functions inherited from Xapian::Internal::opt_intrusive_base | |
void | release () const |
Start reference counting. More... | |
Simple implementation of Stopper class - this will suit most users.
Definition at line 100 of file queryparser.h.
|
inline |
Default constructor.
Definition at line 105 of file queryparser.h.
|
inline |
Initialise from a pair of iterators.
Xapian includes stopword list files for many languages. You can initialise from a file like so:
In bindings for other languages it isn't possible to pass a C++ iterator pair, so instead this constructor is wrapped to allow passing a filename.
Definition at line 121 of file queryparser.h.
|
inline |
Add a single stop word.
Definition at line 124 of file queryparser.h.
Referenced by DEFINE_TESTCASE().
|
virtual |
Return a string describing this object.
Reimplemented from Xapian::Stopper.
Definition at line 48 of file queryparser.cc.
Referenced by DEFINE_TESTCASE().
|
inlinevirtual |
Is term a stop-word?
term | The term to test. |
Implements Xapian::Stopper.
Definition at line 126 of file queryparser.h.
|
private |
Definition at line 101 of file queryparser.h.