Class EnglishSynonymMapConfig.ExpandedEnglishSynonymMapConfig

java.lang.Object
com.apple.foundationdb.record.lucene.synonym.EnglishSynonymMapConfig
com.apple.foundationdb.record.lucene.synonym.EnglishSynonymMapConfig.ExpandedEnglishSynonymMapConfig
All Implemented Interfaces:
SynonymMapConfig
Enclosing class:
EnglishSynonymMapConfig

@AutoService(SynonymMapConfig.class) public static class EnglishSynonymMapConfig.ExpandedEnglishSynonymMapConfig extends EnglishSynonymMapConfig
Expanded synonym map config for English. Looks for a file named wn_s.txt.
  • Field Details

  • Constructor Details

    • ExpandedEnglishSynonymMapConfig

      public ExpandedEnglishSynonymMapConfig()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: SynonymMapConfig
      Get the name of the synonymMap to build.
      Returns:
      the name
    • expand

      public boolean expand()
      Description copied from interface: SynonymMapConfig
      Whether to include all synonyms of the original phrases in the map or only the authoritative one. The SynonymGraphFilter needs to be included in both index and query analyzer if this returns false.
      Returns:
      true if all synonyms are included