Package org.opensearch.index.analysis
Class ShingleTokenFilterFactory.Factory
java.lang.Object
org.opensearch.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
-
Constructor Summary
Constructors Constructor Description Factory(java.lang.String name)
-
Method Summary
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.opensearch.index.analysis.TokenFilterFactory
breaksFastVectorHighlighter, getAnalysisMode, getChainAwareTokenFilterFactory, getSynonymFilter, normalize
-
Constructor Details
-
Factory
public Factory(java.lang.String name)
-
-
Method Details
-
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
-