Package-level declarations

Types

Link copied to clipboard
class CommonGramsFilter(input: TokenStream, commonWords: CharArraySet?) : TokenFilter

Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. This is achieved through the use of PositionIncrementAttribute.setPositionIncrement. Bigrams have a type of GRAM_TYPE Example:

Link copied to clipboard

Wrap a CommonGramsFilter optimizing phrase queries by only returning single words when they are not a member of a bigram.