Example of complex similarity computations in ArangoDB?

164 Views Asked by At

I am new to ArangoDB and have been reading through the documentation and examples available online for a few days now. However, I am not able to formulate a query to do a complex calculation using AQL. Looking forward to some examples that can help.

For starters, an idea on what's the best way to solve a case such as: http://neo4j.com/docs/stable/cypher-cookbook-similarity-calc.html#d5e4728 would be very helpful.

Thanks in advance!

1

There are 1 best solutions below

3
On BEST ANSWER

You're right. Our documentation is lacking examples, we will fix this. Its used like that:

db._query('RETURN SUM([1,3,5*7])/3.5')
[ 
  11.142857142857142 
]