Class AnalysisFactoryTestCase


  • public abstract class AnalysisFactoryTestCase
    extends ESTestCase
    Alerts us if new analysis components are added to Lucene, so we don't miss them.

    If we don't want to expose one for a specific reason, just map it to Void. The deprecated ones can be mapped to Deprecated.class.

    • Constructor Detail

      • AnalysisFactoryTestCase

        public AnalysisFactoryTestCase​(AnalysisPlugin plugin)
    • Method Detail

      • getCharFilters

        protected java.util.Map<java.lang.String,​java.lang.Class<?>> getCharFilters()
      • getTokenFilters

        protected java.util.Map<java.lang.String,​java.lang.Class<?>> getTokenFilters()
      • getTokenizers

        protected java.util.Map<java.lang.String,​java.lang.Class<?>> getTokenizers()
      • getPreConfiguredTokenFilters

        protected java.util.Map<java.lang.String,​java.lang.Class<?>> getPreConfiguredTokenFilters()
        Map containing pre-configured token filters that should be available after installing this plugin. The map is from the name of the token filter to the class of the Lucene TokenFilterFactory that it is emulating. If the Lucene TokenFilterFactory is null then the test will look it up for you from the name. If there is no Lucene TokenFilterFactory then the right hand side should be Void.
      • getPreConfiguredTokenizers

        protected java.util.Map<java.lang.String,​java.lang.Class<?>> getPreConfiguredTokenizers()
        Map containing pre-configured tokenizers that should be available after installing this plugin. The map is from the name of the token filter to the class of the Lucene TokenizerFactory that it is emulating. If the Lucene TokenizerFactory is null then the test will look it up for you from the name. If there is no Lucene TokenizerFactory then the right hand side should be Void.
      • getPreConfiguredCharFilters

        public java.util.Map<java.lang.String,​java.lang.Class<?>> getPreConfiguredCharFilters()
      • testTokenizers

        public void testTokenizers()
      • testCharFilters

        public void testCharFilters()
      • testTokenFilters

        public void testTokenFilters()