|
xapian-core
2.0.0
|
Stopper subclass which checks for both stemmed and unstemmed stopwords. More...
#include <cluster.h>
Inheritance diagram for Xapian::StemStopper:
Collaboration diagram for Xapian::StemStopper:Public Types | |
| enum | stem_strategy { STEM_NONE , STEM_SOME , STEM_ALL , STEM_ALL_Z , STEM_SOME_FULL_POS } |
| Stemming strategies. More... | |
Public Member Functions | |
| StemStopper (const Xapian::Stem &stemmer, stem_strategy strategy=STEM_SOME) | |
| Constructor. More... | |
| std::string | get_description () const override |
| Return a string describing this object. More... | |
| bool | operator() (const std::string &term) const override |
| Is term a stop-word? More... | |
| void | add (std::string_view term) |
| Add a single stop word and its stemmed equivalent. 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 | |
| stem_strategy | stem_action |
| std::unordered_set< std::string > | stop_words |
| Xapian::Stem | stemmer |
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... | |
Stopper subclass which checks for both stemmed and unstemmed stopwords.
This is intended for use with Xapian::Cluster.
|
explicit |
Constructor.
| stemmer | The Xapian::Stem object to set. |
| strategy | The stemming strategy to be used. |
| void Xapian::StemStopper::add | ( | std::string_view | term | ) |
Add a single stop word and its stemmed equivalent.
|
overridevirtual |
Return a string describing this object.
Reimplemented from Xapian::Stopper.
|
inlineoverridevirtual |
Is term a stop-word?
| term | The term to test. |
Implements Xapian::Stopper.
Definition at line 64 of file cluster.h.
References term.
|
private |
|
private |
|
private |