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

Function HasTokenizerOrVectorIndexSpec

schema/parse.go:406–411  ·  view source on GitHub ↗
(update *pb.SchemaUpdate)

Source from the content-addressed store, hash-verified

404}
405
406func HasTokenizerOrVectorIndexSpec(update *pb.SchemaUpdate) bool {
407 if update == nil {
408 return false
409 }
410 return len(update.Tokenizer) > 0 || len(update.IndexSpecs) > 0
411}
412
413// resolveTokenizers resolves default tokenizers and verifies tokenizers definitions.
414func resolveTokenizers(updates []*pb.SchemaUpdate) error {

Callers 2

checkSchemaFunction · 0.92
resolveTokenizersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected