lucene::search::FuzzyQuery Class Reference
#include <FuzzyQuery.h>
List of all members.
Constructor & Destructor Documentation
| lucene::search::FuzzyQuery::FuzzyQuery |
( |
const FuzzyQuery & |
clone |
) |
[protected] |
Create a new FuzzyQuery that will match terms with a similarity of at least minimumSimilarity to term.
If a prefixLength > 0 is specified, a common prefix of that length is also required.
- Parameters:
-
| term | the term to search for |
| minimumSimilarity | a value between 0 and 1 to set the required similarity between the query term and the matching terms. For example, for a minimumSimilarity of 0.5 a term of the same length as the query term is considered similar to the query term if the edit distance between both terms is less than length(term)*0.5 |
| prefixLength | length of common (non-fuzzy) prefix |
- Exceptions:
-
| IllegalArgumentException | if minimumSimilarity is > 1 or < 0 or if prefixLength < 0 or > term.text().length(). |
| lucene::search::FuzzyQuery::~FuzzyQuery |
( |
|
) |
|
Member Function Documentation
| Query* lucene::search::FuzzyQuery::clone |
( |
|
) |
const [virtual] |
| bool lucene::search::FuzzyQuery::equals |
( |
Query * |
other |
) |
const |
| static const TCHAR* lucene::search::FuzzyQuery::getClassName |
( |
|
) |
[static] |
| float_t lucene::search::FuzzyQuery::getMinSimilarity |
( |
|
) |
const |
Returns the minimum similarity that is required for this query to match.
- Returns:
- float value between 0.0 and 1.0
| size_t lucene::search::FuzzyQuery::getPrefixLength |
( |
|
) |
const |
Returns the prefix length, i.e.
the number of characters at the start of a term that must be identical (not fuzzy) to the query term if the query is to match that term.
| const TCHAR* lucene::search::FuzzyQuery::getQueryName |
( |
|
) |
const [virtual] |
| size_t lucene::search::FuzzyQuery::hashCode |
( |
|
) |
const [virtual] |
| TCHAR* lucene::search::FuzzyQuery::toString |
( |
const TCHAR * |
field |
) |
const [virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: