KeywordAttribute

This attribute can be used to mark a token as a keyword. Keyword aware TokenStreams can decide to modify a token based on the return value of .isKeyword if the token is modified. Stemming filters for instance can use this attribute to conditionally skip a term if .isKeyword returns true.

Inheritors

Properties

Link copied to clipboard
abstract var isKeyword: Boolean

Marks the current token as keyword if set to true.