Hey guys - total noob questions but how do you use indexes in AQL. I tried 
checking out the documentation and SO but couldn't find any examples. This 
is my example in Golang so far:
query := `
LET results = FLATTEN(
FOR doc IN @@collectionName01
FILTER @brand == doc.name
RETURN doc.cars)
FOR doc IN @@collectionName02
FILTER results ANY IN doc.cars
RETURN doc
USE INDEX @carIndex`

bindVars := map[string]interface{}{
"@collectionName01": Brand_Collection,
"brand": brand,
"@collectionName02": Car_Collection,
"carIndex": Car_Index,
}
 But I keep getting an error:
AQL: syntax error, unexpected identifier, expecting end of query string 
near 'USE INDEX @carIndex\n\t\t...' at position (while parsing)

Any help or direction would be incredibly helpful!

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to arangodb+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/arangodb/3f12d08c-c2ab-46de-9298-c0f22586c406n%40googlegroups.com.

Reply via email to