ShingleAnalyzerWrapper

A ShingleAnalyzerWrapper wraps a ShingleFilter around another Analyzer.

A shingle is another name for a token based n-gram.

Constructors

Link copied to clipboard
constructor(defaultAnalyzer: Analyzer)
constructor(defaultAnalyzer: Analyzer, maxShingleSize: Int)
constructor(defaultAnalyzer: Analyzer, minShingleSize: Int, maxShingleSize: Int)
constructor(delegate: Analyzer, minShingleSize: Int, maxShingleSize: Int, tokenSeparator: String?, outputUnigrams: Boolean, outputUnigramsIfNoShingles: Boolean, fillerToken: String)

Creates a new ShingleAnalyzerWrapper

constructor()
constructor(minShingleSize: Int, maxShingleSize: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun getOffsetGap(fieldName: String?): Int
Link copied to clipboard
open override fun getPositionIncrementGap(fieldName: String?): Int
Link copied to clipboard
fun normalize(fieldName: String, text: String): BytesRef
Link copied to clipboard
fun tokenStream(fieldName: String, text: String): TokenStream
fun tokenStream(fieldName: String, reader: Reader): TokenStream