Lucene++ - a full-featured, c++ search engine
API Documentation
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
TermPtr term
Definition: FuzzyQuery.h:42
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
FuzzyQuery(const TermPtr &term)
double minimumSimilarity
Definition: FuzzyQuery.h:35
virtual FilteredTermEnumPtr getEnum(const IndexReaderPtr &reader)
Construct the enumeration to be used, expanding the pattern term.
FuzzyQuery(const TermPtr &term, double minimumSimilarity)
Definition: AbstractAllTermDocs.h:12
Implements the fuzzy search query. The similarity measurement is based on the Levenshtein (edit dista...
Definition: FuzzyQuery.h:19
virtual QueryPtr rewrite(const IndexReaderPtr &reader)
Called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into ...
FuzzyQuery(const TermPtr &term, double minimumSimilarity, int32_t prefixLength)
Create a new FuzzyQuery that will match terms with a similarity of at least minimumSimilarity to term...
boost::shared_ptr< RewriteMethod > RewriteMethodPtr
Definition: LuceneTypes.h:425
int32_t prefixLength
Definition: FuzzyQuery.h:39
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
bool termLongEnough
Definition: FuzzyQuery.h:40
void ConstructQuery(const TermPtr &term, double minimumSimilarity, int32_t prefixLength)
virtual int32_t hashCode()
Return hash code for this object.
virtual void setRewriteMethod(const RewriteMethodPtr &method)
Sets the rewrite method to be used when executing the query. You can use one of the four core methods...
static double defaultMinSimilarity()
int32_t getPrefixLength()
Returns the non-fuzzy prefix length. This is the number of characters at the start of a term that mus...
static const int32_t defaultPrefixLength
Definition: FuzzyQuery.h:46
double getMinSimilarity()
Returns the minimum similarity that is required for this query to match.
An abstract Query that matches documents containing a subset of terms provided by a {} enumeration.
Definition: MultiTermQuery.h:31
virtual String toString()
Prints a query to a string.
TermPtr getTerm()
Returns the pattern term.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
boost::shared_ptr< FilteredTermEnum > FilteredTermEnumPtr
Definition: LuceneTypes.h:365
clucene.sourceforge.net