SearchV Must Be Used on a Vector Type
Erroneous Code Example
This error occurs when you useSearchV on a type that is not a vector type.
Solution
UseSearchV on a vector type, not a node or edge type.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
SearchV on a type that is not a vector type.
QUERY findSimilar(embedding: [F32; 128]) =>
results <- N<User>::SearchV(embedding, 10)
RETURN results
N::User {
name: String,
}
SearchV on a vector type, not a node or edge type.
QUERY findSimilar(embedding: [F32; 128]) =>
results <- V<Document>::SearchV(embedding, 10)
RETURN results
V<128>::Document {
title: String,
content: String,
}
Was this page helpful?