Package org.apache.lucene.analysis.shingle
Word n-gram filters.
-
Class Summary Class Description FixedShingleFilter A FixedShingleFilter constructs shingles (token n-grams) from a token stream.FixedShingleFilterFactory Factory forFixedShingleFilter
Parameters are: shingleSize - how many tokens should be combined into each shingle (default: 2) tokenSeparator - how tokens should be joined together in the shingle (default: space) fillerToken - what should be added in place of stop words (default: _ )ShingleAnalyzerWrapper A ShingleAnalyzerWrapper wraps aShingleFilter
around anotherAnalyzer
.ShingleFilter A ShingleFilter constructs shingles (token n-grams) from a token stream.ShingleFilterFactory Factory forShingleFilter
.