Class EnglishSynonymMapConfig.AuthoritativeOnlyEnglishSynonymMapConfig
java.lang.Object
com.apple.foundationdb.record.lucene.synonym.EnglishSynonymMapConfig
com.apple.foundationdb.record.lucene.synonym.EnglishSynonymMapConfig.AuthoritativeOnlyEnglishSynonymMapConfig
- All Implemented Interfaces:
SynonymMapConfig
- Enclosing class:
- EnglishSynonymMapConfig
@AutoService(SynonymMapConfig.class)
public static class EnglishSynonymMapConfig.AuthoritativeOnlyEnglishSynonymMapConfig
extends EnglishSynonymMapConfig
Authoritative only synonym map config for English.
Looks for a file named
wn_s.txt.-
Nested Class Summary
Nested classes/interfaces inherited from class com.apple.foundationdb.record.lucene.synonym.EnglishSynonymMapConfig
EnglishSynonymMapConfig.AuthoritativeOnlyEnglishSynonymMapConfig, EnglishSynonymMapConfig.ExpandedEnglishSynonymMapConfig -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.apple.foundationdb.record.lucene.synonym.EnglishSynonymMapConfig
getSynonymInputStream
-
Field Details
-
CONFIG_NAME
- See Also:
-
-
Constructor Details
-
AuthoritativeOnlyEnglishSynonymMapConfig
public AuthoritativeOnlyEnglishSynonymMapConfig()
-
-
Method Details
-
getName
Description copied from interface:SynonymMapConfigGet the name of the synonymMap to build.- Returns:
- the name
-
expand
public boolean expand()Description copied from interface:SynonymMapConfigWhether to include all synonyms of the original phrases in the map or only the authoritative one. TheSynonymGraphFilterneeds to be included in both index and query analyzer if this returns false.- Returns:
trueif all synonyms are included
-