Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "truncate_token"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TruncateTokenFilter ¶
type TruncateTokenFilter struct {
// contains filtered or unexported fields
}
func NewTruncateTokenFilter ¶
func NewTruncateTokenFilter(length int) *TruncateTokenFilter
func (*TruncateTokenFilter) Filter ¶
func (s *TruncateTokenFilter) Filter(input analysis.TokenStream) analysis.TokenStream
Click to show internal directories.
Click to hide internal directories.