ExactTokenizer returns the exact string as a token. If collator is provided for any language then it also adds the language in the prefix .
| 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 . |
| 395 | type ExactTokenizer struct { |
| 396 | langBase string |
| 397 | cl *collate.Collator |
| 398 | buffer *collate.Buffer |
| 399 | } |
| 400 | |
| 401 | func (t ExactTokenizer) Name() string { return "exact" } |
| 402 | func (t ExactTokenizer) Type() string { return "string" } |
nothing calls this directly
no outgoing calls
no test coverage detected