Method Fuzzy
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
Fuzzy(string, string, int, bool, bool)
Matches terms of a text field within distance edits
(insertions, deletions, substitutions) of value.
public static FuzzyQuery Fuzzy(string field, string value, int distance = 1, bool transpositions = true, bool prefix = false)
Parameters
fieldstringAn indexed text field.
valuestringThe term to approximate. Not analyzed (see Term(string, string)), so pass it lowercased for the default tokenizer.
distanceintMaximum edit distance, 0 to 2.
transpositionsboolCount swapping two adjacent characters as one edit instead of two.
prefixboolMatch terms that start with something within the distance (search-as-you-type).