Package org.elasticsearch.index.analysis
Class ShingleTokenFilterFactory
- java.lang.Object
-
- org.elasticsearch.index.AbstractIndexComponent
-
- org.elasticsearch.index.analysis.AbstractTokenFilterFactory
-
- org.elasticsearch.index.analysis.ShingleTokenFilterFactory
-
- All Implemented Interfaces:
TokenFilterFactory
,IndexComponent
public class ShingleTokenFilterFactory extends AbstractTokenFilterFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShingleTokenFilterFactory.Factory
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.analysis.AbstractTokenFilterFactory
version
-
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
Fields inherited from interface org.elasticsearch.index.analysis.TokenFilterFactory
IDENTITY_FILTER
-
-
Constructor Summary
Constructors Constructor Description ShingleTokenFilterFactory(IndexSettings indexSettings, Environment environment, java.lang.String name, Settings settings)
-
Method Summary
Modifier and Type Method Description org.apache.lucene.analysis.TokenStream
create(org.apache.lucene.analysis.TokenStream tokenStream)
ShingleTokenFilterFactory.Factory
getInnerFactory()
TokenFilterFactory
getSynonymFilter()
Return a version of this TokenFilterFactory appropriate for synonym parsing Filters that should not be applied to synonyms (for example, those that produce multiple tokens) should throw an exception-
Methods inherited from class org.elasticsearch.index.analysis.AbstractTokenFilterFactory
name, version
-
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, index
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.index.analysis.TokenFilterFactory
breaksFastVectorHighlighter, getChainAwareTokenFilterFactory
-
-
-
-
Constructor Detail
-
ShingleTokenFilterFactory
public ShingleTokenFilterFactory(IndexSettings indexSettings, Environment environment, java.lang.String name, Settings settings)
-
-
Method Detail
-
create
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream tokenStream)
-
getSynonymFilter
public TokenFilterFactory getSynonymFilter()
Description copied from interface:TokenFilterFactory
Return a version of this TokenFilterFactory appropriate for synonym parsing Filters that should not be applied to synonyms (for example, those that produce multiple tokens) should throw an exception
-
getInnerFactory
public ShingleTokenFilterFactory.Factory getInnerFactory()
-
-