public enum FuzzyMode extends Enum<FuzzyMode>
| Enum Constant and Description |
|---|
FILL
Use fuzzy matching to fill search results, up to the requested
maximum number, after all exact matches have been discovered.
|
NO_EXACT
Use fuzzy matching only if no exact matches can be found.
|
OFF
Do not use fuzzy matching.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
useFuzzyMatching(int maxResults,
int exactResults)
Indicates whether a fuzzy query should be performed in this mode based
on the number of results found and the maximum number of results.
|
static FuzzyMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FuzzyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FuzzyMode OFF
public static final FuzzyMode NO_EXACT
public static final FuzzyMode FILL
public static FuzzyMode[] values()
for (FuzzyMode c : FuzzyMode.values()) System.out.println(c);
public static FuzzyMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean useFuzzyMatching(int maxResults,
int exactResults)
maxResults - the maximum number of results to returnexactResults - the number of exact results foundtrue if fuzzy matching should be appliedCopyright © 2012–2014 Berico Technologies. All rights reserved.