MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / EncodeGeoTokens

Function EncodeGeoTokens

tok/tok.go:701–705  ·  view source on GitHub ↗

EncodeGeoTokens encodes the given list of tokens as geo tokens.

(tokens []string)

Source from the content-addressed store, hash-verified

699
700// EncodeGeoTokens encodes the given list of tokens as geo tokens.
701func EncodeGeoTokens(tokens []string) {
702 for i := 0; i < len(tokens); i++ {
703 tokens[i] = encodeToken(tokens[i], GeoTokenizer{}.Identifier())
704 }
705}
706
707// EncodeRegexTokens encodes the given list of strings as regex tokens.
708func EncodeRegexTokens(tokens []string) {

Callers 1

parseSrcFnFunction · 0.92

Calls 2

encodeTokenFunction · 0.85
IdentifierMethod · 0.65

Tested by

no test coverage detected