Class AnalysisFactoryTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.indices.analysis.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 Details

    • AnalysisFactoryTestCase

      public AnalysisFactoryTestCase(org.elasticsearch.plugins.AnalysisPlugin plugin)
  • Method Details

    • getCharFilters

      protected Map<String,Class<?>> getCharFilters()
    • getTokenFilters

      protected Map<String,Class<?>> getTokenFilters()
    • getTokenizers

      protected Map<String,Class<?>> getTokenizers()
    • getPreConfiguredTokenFilters

      protected Map<String,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 Map<String,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 Map<String,Class<?>> getPreConfiguredCharFilters()
    • testTokenizers

      public void testTokenizers()
    • testCharFilters

      public void testCharFilters()
    • testTokenFilters

      public void testTokenFilters()