Interface SynonymMapConfig
- All Known Implementing Classes:
EnglishSynonymMapConfig,EnglishSynonymMapConfig.AuthoritativeOnlyEnglishSynonymMapConfig,EnglishSynonymMapConfig.ExpandedEnglishSynonymMapConfig
Configuration of the synonym map, which is built from a file.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexpand()Whether to include all synonyms of the original phrases in the map or only the authoritative one.getName()Get the name of the synonymMap to build.Get solr format input stream to build the synonymMap.static InputStream
-
Method Details
-
getName
String getName()Get the name of the synonymMap to build.- Returns:
- the name
-
getSynonymInputStream
InputStream getSynonymInputStream()Get solr format input stream to build the synonymMap.- Returns:
- the input stream
-
expand
boolean expand()Whether 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
-
openFile
-