Package org.elasticsearch.index.analysis
Class ShingleTokenFilterFactory.Factory
- java.lang.Object
-
- org.elasticsearch.index.analysis.ShingleTokenFilterFactory.Factory
-
- All Implemented Interfaces:
TokenFilterFactory
- Enclosing class:
- ShingleTokenFilterFactory
public static final class ShingleTokenFilterFactory.Factory extends java.lang.Object implements TokenFilterFactory
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.index.analysis.TokenFilterFactory
IDENTITY_FILTER
-
-
Constructor Summary
Constructors Constructor Description Factory(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.analysis.TokenStream
create(org.apache.lucene.analysis.TokenStream tokenStream)
int
getMaxShingleSize()
int
getMinShingleSize()
boolean
getOutputUnigrams()
boolean
getOutputUnigramsIfNoShingles()
java.lang.String
name()
-
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, getSynonymFilter
-
-
-
-
Method Detail
-
create
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream tokenStream)
- Specified by:
create
in interfaceTokenFilterFactory
-
getMaxShingleSize
public int getMaxShingleSize()
-
getMinShingleSize
public int getMinShingleSize()
-
getOutputUnigrams
public boolean getOutputUnigrams()
-
getOutputUnigramsIfNoShingles
public boolean getOutputUnigramsIfNoShingles()
-
name
public java.lang.String name()
- Specified by:
name
in interfaceTokenFilterFactory
-
-