Documentation

Index

Constants

View Source
const Name = "edge_ngram"

Variables

This section is empty.

Functions

func EdgeNgramFilterConstructor

func EdgeNgramFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)

Types

type EdgeNgramFilter

type EdgeNgramFilter struct {
	// contains filtered or unexported fields
}

func NewEdgeNgramFilter

func NewEdgeNgramFilter(side Side, minLength, maxLength int) *EdgeNgramFilter

func (*EdgeNgramFilter) Filter

type Side

type Side bool
const BACK Side = true
const FRONT Side = false

Source Files