ShingleFilter

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

Constructs a ShingleFilter with the specified shingle size from the TokenStream input

Parameters

input

input stream

minShingleSize

minimum shingle size produced by the filter.

maxShingleSize

maximum shingle size produced by the filter.


constructor(input: TokenStream, maxShingleSize: Int)

Constructs a ShingleFilter with the specified shingle size from the TokenStream input

Parameters

input

input stream

maxShingleSize

maximum shingle size produced by the filter.


constructor(input: TokenStream)

Construct a ShingleFilter with default shingle size: 2.

Parameters

input

input stream


constructor(input: TokenStream, tokenType: String)

Construct a ShingleFilter with the specified token type for shingle tokens and the default shingle size: 2

Parameters

input

input stream

tokenType

token type for shingle tokens