MCPcopy
hub / github.com/dgraph-io/dgraph / ExactTokenizer

Struct ExactTokenizer

tok/tok.go:395–399  ·  view source on GitHub ↗

ExactTokenizer returns the exact string as a token. If collator is provided for any language then it also adds the language in the prefix .

Source from the content-addressed store, hash-verified

393// ExactTokenizer returns the exact string as a token. If collator is provided for
394// any language then it also adds the language in the prefix .
395type ExactTokenizer struct {
396 langBase string
397 cl *collate.Collator
398 buffer *collate.Buffer
399}
400
401func (t ExactTokenizer) Name() string { return "exact" }
402func (t ExactTokenizer) Type() string { return "string" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected