Class FuzzyQuery
Implements the fuzzy search query. The similarity measurement is based on the Levenshtein (edit distance) algorithm.
Warning: this query is not very scalable with its default prefix length of 0 - in this case, every term will be enumerated and cause an edit score calculation.
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public class FuzzyQuery : MultiTermQuery
Constructors
Name | Description |
---|---|
FuzzyQuery(Term) | Calls FuzzyQuery(Term, Single). |
FuzzyQuery(Term, Single) | Calls FuzzyQuery(Term, Single). |
FuzzyQuery(Term, Single, Int32) | Create a new FuzzyQuery that will match terms with a similarity
of at least |
Fields
Name | Description |
---|---|
defaultMinSimilarity | |
defaultPrefixLength |
Properties
Name | Description |
---|---|
MinSimilarity | Returns the minimum similarity that is required for this query to match. |
PrefixLength | Returns the non-fuzzy prefix length. This is 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. |
RewriteMethod | |
Term | Returns the pattern term. |
Methods
Name | Description |
---|---|
Equals(Object) | |
GetEnum(IndexReader) | |
GetHashCode() | |
Rewrite(IndexReader) | |
ToString(String) |