xapian-core  1.5.0
Public Types | Public Member Functions | List of all members
Xapian::StemStopper Class Reference

Stopper subclass which checks for both stemmed and unstemmed stopwords. More...

+ Inheritance diagram for Xapian::StemStopper:

Public Types

enum  stem_strategy {
  STEM_NONE, STEM_SOME, STEM_ALL, STEM_ALL_Z,
  STEM_SOME_FULL_POS
}
 Stemming strategies.
 

Public Member Functions

 StemStopper (const Xapian::Stem &stemmer, stem_strategy strategy=STEM_SOME)
 Constructor. More...
 
std::string get_description () const
 Return a string describing this object.
 
bool operator() (const std::string &term) const
 Is term a stop-word? More...
 
void add (const std::string &term)
 Add a single stop word and its stemmed equivalent.
 
- Public Member Functions inherited from Xapian::Stopper
 Stopper ()
 Default constructor.
 
virtual ~Stopper ()
 Class has virtual methods, so provide a virtual destructor.
 
Stopperrelease ()
 Start reference counting this object. More...
 
const Stopperrelease () const
 Start reference counting this object. More...
 

Detailed Description

Stopper subclass which checks for both stemmed and unstemmed stopwords.

Constructor & Destructor Documentation

◆ StemStopper()

Xapian::StemStopper::StemStopper ( const Xapian::Stem stemmer,
stem_strategy  strategy = STEM_SOME 
)
explicit

Constructor.

Parameters
stemmerThe Xapian::Stem object to set.
strategyThe stemming strategy to be used.

Member Function Documentation

◆ operator()()

bool Xapian::StemStopper::operator() ( const std::string &  term) const
inlinevirtual

Is term a stop-word?

Parameters
termThe term to test.

Implements Xapian::Stopper.


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