Enum MatchType
- java.lang.Object
-
- java.lang.Enum<MatchType>
-
- aero.panasonic.inflight.services.common.v2.MatchType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MatchType>
public enum MatchType extends java.lang.Enum<MatchType>
This class provides the flexibility to set the type of match for the search results. The match types are: broad or fuzzy, phrase and exact match.
The search criteria for a broad or fuzzy match includes typo correction and not all words need to exist. For phrase match, typo correction is provided, but all words need to be included. Exact match allows no typo correction and the text must be correct.
For example, in a broad or fuzzy match type, the passenger's query can include misspellings, stemming and word variations and key words in any order. If a passenger enters 'Fozen', the results display 'Showing results for: Frozen'. If a passengers queries 'Tarzan Legend', the 'Legend of Tarzan' is returned.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROAD_MATCHBroad or fuzzy match shows search results that include typo correction, synonyms, related searches and other variations.EXACT_MATCHExact match shows search results that are an exact word or phrase.PHRASE_MATCHPhrase match shows search results that include typo correction and a phrase with additional words.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MatchTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MatchType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BROAD_MATCH
public static final MatchType BROAD_MATCH
Broad or fuzzy match shows search results that include typo correction, synonyms, related searches and other variations. The passenger does not need to enter all the words.
-
PHRASE_MATCH
public static final MatchType PHRASE_MATCH
Phrase match shows search results that include typo correction and a phrase with additional words. The passenger must enter the exact phrase or a close variation of the phrase.
-
EXACT_MATCH
public static final MatchType EXACT_MATCH
Exact match shows search results that are an exact word or phrase. The passenger must enter the exact word or phrase. term
-
-
Method Detail
-
values
public static MatchType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MatchType c : MatchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatchType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-