org.exist.xquery.functions.text
Class FuzzyMatcher
java.lang.Object
org.exist.xquery.functions.text.FuzzyMatcher
- All Implemented Interfaces:
- TermMatcher
public class FuzzyMatcher
- extends Object
- implements TermMatcher
A fuzzy implementation of TermMatcher
. It calculates
the Levenshtein distance between the index and the search term.
- Author:
- Wolfgang Meier (wolfgang@exist-db.org)
FuzzyMatcher
public FuzzyMatcher(String searchTerm,
double threshold)
matches
public boolean matches(CharSequence text)
- Specified by:
matches
in interface TermMatcher
Copyright (C) Wolfgang Meier. All rights reserved.